1.0.3 • Published 2 years ago

rupiah-formatter v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rupiah-formatter

A number to currency (in rupiah) formatter.

Getting Started

npm install --save rupiah-formatter

import the library :

/* how to import and use it */
const rupiahFormatter = require('rupiah-formatter');

use a number to currency formatter method :

const formatted = rupiahFormatter.formatToString(10000); // Rp10.000,00

use a rupiah format to number method :

const nominal = rupiahFormatter.formatToNumber('Rp10.000,00'); //100000