UNPKG

asian-num-words

Version:

A simple libray that converts digits into South Asian numbering system. Eg. Lakh, Crore

43 lines (26 loc) 1.04 kB
# asian-num-words A simple module for converting numbers to words in the South Asian numbering system. E.g. *One crore five lakh*. ## Install ```js npm install asian-num-words ``` # Example ```js 1 => // One 12 => // twelve 123 => // one hundred and twenty three 1234 => // one thousand two hundred and thirty four 12345 => // twelve thousand three hundred and forty five 123456 => // one lakh twenty three thousand four hundred and fifty six 1234567 => // twelve lakh thirty four thousand five hundred and six seven 12345678 => // one crore twenty three lakh fourty five thousand six hundred and seventy eight ``` # Usage ```js const asianNumWords = require('asian-num-words'); const amountInWords = asianNumWords(12345); // twelve thousand three hundred and forty five ``` # Contributing If you encounter a bug, please open an issue with the input that caused an incorrect conversion. # Keywords digit, convert, word, number, amount