convert numbers to arabic words made with typescript so it fast and maintainable - تحويل الارقام الي كلمات عربيه أداه متجدده بأستمرار و سريعه

!example workflow
toArabicWord(1000) do this magic 👌
html
`
$3
`bash
npm i number-to-arabic-words
`
$3
`bash
yarn add number-to-arabic-words
`
$3
`javascript
const NumbersToArabicWords = require('dist/index-node.js')
NumbersToArabicWords.toArabicWord(1000)
`
Typescript
`typescript
import { toArabicWord } from 'number-to-arabic-words/dist/index-node.js';
toArabicWord(1000);
`
React
Check this discussion How to use this library in Reactjs ?
By @RedaTheCeo
$3
| 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 ..
`javascript
arabicWord.setConfig({
delimiter: '/',
strict: true,
})
``