UNPKG

@anjanesh/number-to-words-inr

Version:

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

8 lines (4 loc) 369 B
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"