UNPKG

@anjanesh/number-to-words-inr

Version:

Integer number to Indian numbering currency system featuring Crores, Lakhs, Thousands and Hundreds

36 lines (19 loc) 707 B
# number-to-words-inr Number to words (Indian style - crore, lakh). ## Installation Install the package via npm: ```bash npm install @anjanesh/number-to-words-inr ``` ## Usage Import. ```javascript import { number2words as numberToWordsINR } from "@anjanesh/number-to-words-inr"; console.log(numberToWordsINR(12345).trim()); // "twelve thousand three hundred forty five" console.log(numberToWordsINR(0).trim()); // "zero" console.log(numberToWordsINR(987654321).trim()); // "ninety eight crore seventy six lakh fifty four thousand three hundred twenty one" ``` ## License This project is licensed under the MIT License. ## Author Anjanesh Lekshminarayanan