Package Exports
- format-money-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (format-money-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
format-money-js
Tiny JavaScript library (668 bytes) by CurrencyRate.today, providing simple and advanced number, money and currency formatting.
Example
const { FormatMoney } = require('format-money-js');
const fm = new FormatMoney({
decimals: 2,
prefix: '$'
});
console.log(fm.from(12345.67)); // $12,345.67