i

Publishing your own module

It is also possible to publish the custom modules that we created to NPM  so that we can create our modules to be available  for others to download.

Steps involved to publish custom modules

1. Create a user account using signup option in npmjs.com or

using npm adduser command from the command prompt as below:

2. It will prompt for details. Complete those details

3. Check if there is a package.json created.

If not create it using npm init

4. Use npm publish command to publish the module to npm.

To use module, type

npm i