format a number to currency
Install with component(1):
$ component install yields/currency
currency(1000); // => "1,000.00"
currency("1,000.00"); // => 1000.00
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more