Converts Numbers (including decimal points) into words for Central Kurdish Language. It also converts the numbers into words for currency.
npm i kurdish-number-towords --save
const { convert, convertCurrency } = require('kurdish-number-towords');
OR
import { convert, convertCurrency } from 'kurdish-number-towords';
console.log(convert(123)) // سەد و بیست و سێ
console.log(convertCurrency(123)) // سەد و بیست و سێ دینار
Use Currency with including decimal points :
console.log(convertCurrency(123.25)) // سەد و بیست و سێ دینار و بیست و پێنج فلس
Note. By default Currency unit is Dinar and decimal unit is Flis, you can change to any Currency and decimal unit :
console.log(convertCurrency(123, 'دۆلار')) // سەد و بیست و سێ دۆلار
console.log(convertCurrency(123.25, 'دۆلار', 'سەنت')) // سەد و بیست و سێ دۆلار و بیست و پێنج سەنت
Version 1.0.1
- Converts Currency into words.
- Use Special Currency and decimal units.
Version 1.0.0
- Converts Numbers into words for Central Kurdish Language.