@bddavidson/number-formatter

A basic number formatter from the codeburst.io tutorial

Usage no npm install needed!

<script type="module">
  import bddavidsonNumberFormatter from 'https://cdn.skypack.dev/@bddavidson/number-formatter';
</script>

README

Number Formatter

A small library that adds commas to numbers. This is based on a walkthrough from codeburst.io

Installation

npm install number-formatter

Usage

var numFormatter = require('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.