A small library that adds commas to numbers.
'npm install @hpaiz/goodnum'
var formatNum = require('@hpaiz/goodnum'); var formattedNum = formatNum(35689);
Output should be 35,689
npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.