format-money

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i format-money

Weekly Downloads

6

Version

1.0.0

License

ISC

Last publish

Collaborators

  • derekpeterson