https://github.com/mcabreradev/number-formatter
https://github.com/mcabreradev/number-formatter
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcabreradev/number-formatter
- Owner: mcabreradev
- License: mit
- Created: 2017-08-16T02:29:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-05T09:35:19.000Z (over 2 years ago)
- Last Synced: 2025-02-07T12:47:15.742Z (over 1 year ago)
- Language: HTML
- Size: 2.93 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/miguel4ngelc/number-formatter)
[](https://coveralls.io/github/miguel4ngelc/number-formatter?branch=master)
Number Formatter ;)
=========
A small library that adds commas to numbers
## Installation
`npm install @miguel4ngelc/number-formatter`
## Usage
var numFormatter = require('@miguel4ngelc/number-formatter');
var formattedNum = numFormatter(35666);
Output should be `35,666`
## Tests
`npm test`
## Contributing
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.