1.0.2 • Published 7 years ago
helloworld-chandran.dipak v1.0.2
Hello World!
This is the first package create as part of learning on how to create an NPM package and publish publically, and use it on other projects. Thanks for checking this out.
STEPS Followed to create this package:
- Create a new directory
- run command
npm init
- provide required informations
- create index.js
- write the code feature and export function as module
- run
npm adduser
- create a new user in npm - run
npm login
- to login with current user - run
npm publish
- to publish your package
NOTES :
- Make sure your package name in package.json is unique.
Reference:
Use this package in your project:
run
npm install helloworld-chandran.dipak
ornpm install helloworld-chandran.dipak --save
Sample Code:
var HW = require('helloworld-chandran.dipak');
HW.print("Hellwo");