@unitsix/number-formatter

0.1.3 • Public • Published

Coverage Status Build Status

Number Formatter

A small library that adds commas to numbers

Installation

npm install @unitsix/number-formatter

Usage

var numFormatter = require('@unitsix/number-formatter');

var formattedNum = numFormatter(35666);

Output should be 35,666

Tests

npm test or make test

Deploy/Publish

With Make

make publish-patch or make publish-minor or make publish-major

Without Make

npm version patch -m "Version %s - add sweet badges"

%s = the new version number.

This command will bump the version number in package.json, add a new commit, and tag it with this release number.

Note: Your Git working directory has to be clean before you can run npm version.

After bumping the version number

git push && git push --tags (or git push origin master --tags)
npm publish

https://codeburst.io/how-to-create-and-publish-your-first-node-js-module-444e7585b738

Readme

Keywords

Package Sidebar

Install

npm i @unitsix/number-formatter

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

6.79 kB

Total Files

10

Last publish

Collaborators

  • unitsix