@oorts/format-number

Oorts format number

Usage no npm install needed!

<script type="module">
  import oortsFormatNumber from 'https://cdn.skypack.dev/@oorts/format-number';
</script>

README

Oorts: Hello world

Number Formatter

A small library that adds commas to numbers

Installation

npm install @oorts/format-number or yarn add @oorts/format-number

Usage

import numFormatter from '@oorts/format-number';

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.