Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gerardolima-number-formatter

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gerardolima-number-formatter

Test for creating a Npm package.

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

Installation

npm install gerardolima-number-formatter

Usage

var numFormatter = require('gerardolima-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

Keywords

FAQs

Package last updated on 05 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc