npm.io
0.1.2 • Published 7 years ago

@jvega300/number-formatter

Licence
ISC
Version
0.1.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0

number-formatter

Number Formatter

A small library that adds commas to numbers

Installation

npm install @jvega300/number-formatter

Usage

var numFormatter = require('@jvega300/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. It´s based on tutorial from https://codeburst.io/how-to-create-and-publish-your-first-node-js-module-444e7585b738