An open API service indexing awesome lists of open source software.

https://github.com/mcabreradev/number-formatter


https://github.com/mcabreradev/number-formatter

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/miguel4ngelc/number-formatter.svg?branch=master)](https://travis-ci.org/miguel4ngelc/number-formatter)
[![Coverage Status](https://coveralls.io/repos/github/miguel4ngelc/number-formatter/badge.svg?branch=master)](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.