1.0.0 • Published 7 years ago

number-to-words-rupiah v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

number-to-words-rupiah

This npm package will convert numbers to words in Indonesian Rupiah (IDR) format. With a minimum number of 0 and maximum number of 999999999999999.

Installation

npm install --save number-to-words-rupiah

Usage

var convertToRupiah = require('number-to-words-rupiah')

console.log(convertToRupiah(1900817));
//will return: Satu Juta Sembilan Ratus Ribu Delapan Ratus Tujuh Belas Rupiah

console.log(convertToRupiah(9999999999999999));
//will return: Input number is out of scope, maximum number is 999999999999999, minimum number is 0