1.1.2 • Published 4 years ago
format-money-with-separator v1.1.2
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