number_formatter

Number formatter module

Usage no npm install needed!

<script type="module">
  import numberFormatter from 'https://cdn.skypack.dev/number_formatter';
</script>

README

Build Status"> Number Formatter

A small library that adds commas to numbers

Installation

npm i number_formatter

Usage

var numFormatter = require('number_formatter');

var formattedNum = numFormatter(30000);

Output should be 30,000

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.