0.0.10 • Published 8 years ago

jcvpacheco-number-formatter v0.0.10

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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

Build Status Coverage Status

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago