1.0.1 • Published 3 years ago

kurdish-number-towords v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Kurdish number to words

Introduction

Converts Numbers (including decimal points) into words for Central Kurdish Language. It also converts the numbers into words for currency.

Installation

npm i kurdish-number-towords --save

Usage

Importing

const { convert, convertCurrency } = require('kurdish-number-towords');

OR

import { convert, convertCurrency } from 'kurdish-number-towords';

To convert Number to words

console.log(convert(123)) // سەد و بیست و سێ

To convert Currency to words

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, 'دۆلار', 'سەنت')) // سەد و بیست و سێ دۆلار و بیست و پێنج سەنت

Change Log

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.