1.0.1 • Published 7 years ago

packagenpmcapital v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

How to publish package in NPM in node.js

Create login in https://www.npmjs.com/

C:>cd D:\Sarvesh\Sarvesh\Practice\Nodejs\packageMe

C:>d:

D:\Sarvesh\Sarvesh\Practice\Nodejs\packageMe>dir Volume in drive D has no label. Volume Serial Number is E260-A873

Directory of D:\Sarvesh\Sarvesh\Practice\Nodejs\packageMe

12/28/2016 08:24 AM . 12/28/2016 08:24 AM .. 12/28/2016 08:25 AM 120 index.js 12/28/2016 08:24 AM 291 package.json 2 File(s) 411 bytes 2 Dir(s) 22,015,885,312 bytes free

D:\Sarvesh\Sarvesh\Practice\Nodejs\packageMe>npm adduser Username: sarveshkumar Password: Email: (this IS public) sarvesh.mca@hotmail.com Logged in as sarveshkumar on https://registry.npmjs.org/.

D:\Sarvesh\Sarvesh\Practice\Nodejs\packageMe>npm publish

  • packagepub@1.0.0

D:\Sarvesh\Sarvesh\Practice\Nodejs\packageMe>

update package in npm

change the "version": "1.0.1" in package.json

then command : npm publish and npm update --save


#Test Pacakage This is my test package.

Installation

npm install packagepub

Usage

var numFormatter=require('packagepub');
var formatedNumber= numFormatter(125646);
console.log(formatedNumber);

1.0.1

7 years ago