inr-words
Version:
Convert Indian currency from numbers to words
29 lines (20 loc) • 818 B
Markdown
**Example:** INR 35,45,650 will be converted to Thirty five lakhs forty five thousand six hundred and fifty rupees
**Note**: `Octal` numbers are converted to decimal before converting to words.
[](https://www.npmjs.com/package/inr-words)
> Note: version 2.0.0 and onwards, esm modules artifacts will be followed. For csm implementation, please follow lower versions.
```
npm install inr-words
```
````
import {inrInWords as inr} from './index.js';
console.log(inr(3485));
// Output: three thousand four hundred eighty five rupees
console.log(inr(248745956.67));
// Output: twenty four crores eighty seven lakhs forty five thousand nine hundred fifty six rupees and sixty seven paise
````
[][LICENSE]
[]: LICENSE