Skip to the content.

npm version example workflow

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 ?

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

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

Docs

Please Let me know about any bug or feature and consider it done. Thank you ๐Ÿ˜๐Ÿš€๐Ÿ’– ..