number_format

just an module which provides a simple number formatting like you do in PHP!

Trying to migrate the same native functionality of PHP (number_format) to NodeJS.

I'm won't reinventing the wheel; instead of it, I'm inventing it. (?)

Some examples would be great!

console.log(number_format(1250, 2)) // 1,250.00
console.log(number_format(1250, 2, ',', '.')) // 1.250,00

Sorry, I've said examples; but it's only a example.
Okay, concluding: try to use this function like you use in PHP.

Of course, I'm accepting PR if applicable.
Cya!