npm
=========
This is a personal study on the necessary steps to create, publish and consume a npm package. I am following this nice tutorial from Joanne at medium.com.
This package exports Joanne's implementation of a function to add commas to numbers.
Update 10
Installation
npm install jcvpacheco-number-formatter
Usage
var numFormatter = require('jcvpacheco-number-formatter');
var formattedNum = numFormatter(35666);
Output should be
35,666
Build
Currenly this repository package only relies on npm scripts.
npm run clean
npm run build
Currenntly, these scripts need to run on
bash, so that the
continuous integration and the
coverage tests run properly. To run them on windows, you need to create an evironment variable to inform
npm to use bash, instead of the standard command interpreter (
more information here).
export "comspec=C:\Program Files\Git\git-bash.exe"
I am intending to use Gulp to avoid these kind of system specifities.
Tests
npm test
Code status

