A boilerplate repository for creating npm modules. It supports Travis CI, Istanbul and Coveralls for code coverage, a simple test, and a configured package.json with npm scripts, dependencies, keywords, and more.
npm install @sanchezjjose/npm-module-boilerplate
At the moment the test code is a number formatter.
var numFormatter = require('@sanchezjjose/npm-module-boilerplate');
var formattedNum = numFormatter(35666);
Output should be 35,666
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.