format currency
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
History.md
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

currency

format a number to currency

Installation

Install with component(1):

$ component install yields/currency

API

currency(1000); // => "1,000.00"
currency("1,000.00"); // => 1000.00

License

MIT