number-to-currency
v1.0.3
Published
A Simple 👌 & lightweight JavaScript number to currency formatter library.
Downloads
41
Maintainers
Readme
NumberToCurrency.js
A Simple & lightweight JavaScript number to currency formatter library.
Installation
Using npm:
$ npm i number-to-currency
Using yarn:
$ yarn add number-to-currency
Usage
ES5
const formatter = require ("number-to-currency")
ES6
import formatter from "number-to-currency"
formatter(2000) -> 2,000
Project Status
NumberToCurrency.js is a legacy project. If you love ❤️ this library, feel free to contribute.
For more details and recommendations, please see Project Status in the docs.
Thank you. 🤗
License
NumberToCurrency.js is freely distributable under the terms of the MIT license.