bullhead
v0.0.5
Published
a package to add thousand-bit separator for a number value.
Downloads
1
Readme
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