1.0.5 • Published 7 years ago

rupee-formatter v1.0.5

Weekly downloads
22
License
MIT
Repository
github
Last release
7 years ago

rupee-formatter

Indian Currency formatter.

Installing package:

npm install --save rupee-formatter

OR

yarn add rupee-formatter

Usage Example:

var rupeeFormatter = require('rupee-formatter');
var input = "12543.66";
var output = rupeeFormatter(input);
//output is "₹ 12,543.66"
InputOutput
"1""₹ 1"
"100""₹ 100"
"1400""₹ 1,400"
1400"₹ 1,400"
-54980"₹ -54,980"
"-54980""₹ -54,980"
-54980.6789"₹ -54,980.6789"
"-54980.1234""₹ -54,980.1234"
"1400.67""₹ 1,400.67"
"14000.67""₹ 14,000.67"
14000.67"₹ 14,000.67"
14000"₹ 14,000"
"1753676545643.345434""₹ 17,53,67,65,45,643.345434"
"""₹ -"
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago