Numbers To Arabic Words
is a library to transform the numbers into Arabic words without any external dependencies and itโs so fast and stable because itโs build in typescript.
Why do you Need to use it ?
- Supporting Browser and NodeJs .
- Easy installation .
- Unlimited Updates and Support .
- Made by ๐ to be Free forever .
- Based on Arabic number rules Arabic Numbers Rules ุงูู ุนุฌู
- Support points like that 100.52
- Customizable ๐๐ป
- Support unlimited number length more than 100000000000000000000 โููุงุฏุฑููููโ ๐ฒ
- Just only one function
toArabicWord(1000)
do this magic ๐
How To Install ?
Browser
<script src="https://cdn.jsdelivr.net/npm/number-to-arabic-words@latest/dist/index.js"></script>
<script>
toArabicWord(1000)
</script>
Npm
npm i number-to-arabic-words
Yarn
yarn add number-to-arabic-words
NodeJs
const NumbersToArabicWords = require('dist/index-node.js')
NumbersToArabicWords.toArabicWord(1000)
Examples
Number | Result |
---|---|
toArabicWord(1000) |
ุฃูู |
toArabicWord(100000) |
ู ุงุฆู ุฃูู |
toArabicWord(2000000) |
ู ููููุงู |
toArabicWord(102030) |
ู ุงุฆู ู ุฃุซูุงู ุฃูู ู ุซูุงุซูู |
toArabicWord(5000.65) |
ุฎู ุณ ุขูุงู ูุงุตู ุฎู ุณ ู ุณุชูู |
toArabicWord(200.23) |
ู ุงุฆุชุงู ูุงุตู ุซูุงุซ ู ุนุดุฑูู |
toArabicWord(1.00) |
ู ุงุฆุฉ ูุงุตู ุชุณุน ุขูุงู ู ุฎู ุณู ุงุฆุฉ ู ุซู ุงู ู ุณุชูู |
toArabicWord(100.9568) |
ู ุงุฆุฉ ูุงุตู ุชุณุน ุขูุงู ู ุฎู ุณู ุงุฆุฉ ู ุซู ุงู ู ุณุชูู |
toArabicWord(100.52) |
ู ุงุฆู ูุงุตู ุฃุซูุงู ู ุฎู ุณูู |
Advanced
- You can change the config by using the global object
arabicWord
as example ..
arabicWord.setConfig({
delimiter: '/',
strict: true,
})
All the options
ย | Option | Type | Description |
---|---|---|---|
1 | delimiter | string | you can change instead of โูุงุตูโ to be anything else |
2 | strict | boolean | get the result as Json |
3 | numberSectionsDelimiter | string | change โูโ to be anything else |
More
Please Let me know about any bug or feature and consider it done. Thank you ๐๐๐ ..