format-money
v1.0.0
Published
A module for formatting USD currency
Downloads
1
Readme
format-money
Just a little package to format a number as (USD) currency.
format(15.2345); // $15.23
format(2670987.6423); // $2,670,987.64
Right now, it always rounds down when faced with decimals beyond the hundredths.