UNPKG

number-to-rupee

Version:

Number two Rupee is a javascript library for converting numbers in Indian rupee word.

33 lines (21 loc) 773 B
# Number two Rupee Number two Rupee is a javascript library for converting numbers in Indian rupee word. ## Installation Use the package manager [npm](https://npmjs.com) to install `number-to-rupee`. ```bash npm install number-to-rupee ``` ## Usage ```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 ``` ## Contributing 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. ## License [MIT](https://choosealicense.com/licenses/mit/)