1.0.1 ⢠Published 4 years ago
@fahadimran/commas v1.0.1
@fahadimran/commas
š A simple npm package that adds commas to numbers.
Install
$ npm install @fahadimran/commas
Usage
const commas = require("@fahadimran/commas");
commas(123456789);
// => 123,456,789
commas(123456.789);
// => 123,456.789
commas("some random string");
// => Uncaught TypeError: Input must be a number!