number-to-rupee
Version:
Number two Rupee is a javascript library for converting numbers in Indian rupee word.
33 lines (21 loc) • 773 B
Markdown
Number two Rupee is a javascript library for converting numbers in Indian rupee word.
Use the package manager [npm](https://npmjs.com) to install `number-to-rupee`.
```bash
npm install number-to-rupee
```
```javascript
import numberToRupee from 'number-to-rupee';
const number = 123456789;
const rupee = numberToRupee(number);
console.log(rupee);
// Output:
// Twelve Crore Thirty Four Lakh Fifty Six Thousand Seven Hundred Eighty Nine Rupees
```
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
[](https://choosealicense.com/licenses/mit/)