npm.io
1.1.2 • Published 6 years ago

format-money-with-separator

Licence
MIT
Version
1.1.2
Deps
0
Size
1 kB
Vulns
0
Weekly
0

format-money-with-separator

a module for format money string with separator

Installation

$ npm install format-money-with-separator

Usage

let separateMoney = require("format-money-with-separator");
separateMoney(12345678); // "12.345.678"
separateMoney(12345678, ","); // "12,345,678"

API

The following are all api of this library:

API Description
separateMoney(param) format a value with separator, the value can be a number or a string

License

MIT