num-format-currency
v1.0.3
Published
Number formatting library
Downloads
4
Readme
Example usage:
// All settings are optional
let format = require('num-format-currency')({
suffix: ' USD',
prefix: '$',
decimalSeparator: '.',
decimals: 2,
groupSeparator: ','
});
format(123456.78910) // => $123,456.78 USD