1.0.1 • Published 4 years ago

@fahadimran/commas v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

@fahadimran/commas

npm (scoped) npm bundle size

šŸš€ 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!
1.0.1

4 years ago

1.0.0

4 years ago