bullhead

0.0.5 • Public • Published

bullhead

a package to add thousand-bit separator for a number value.

Examples

var bh = require('bullhead');
 
console.log(bh(12000));  // 12,000
console.log(bh(12000, 2));  // 12,000.00
console.log(bh(12000, 2, '$')); // $12,000.00
console.log(bh(12000.332, 2, '$')); // $12,000.33

Readme

Keywords

Package Sidebar

Install

npm i bullhead

Weekly Downloads

4

Version

0.0.5

License

MIT

Last publish

Collaborators

  • gejiawen