Publishing a Node.js Packaged Module to the NPM Registry
NPM Registry is the best way to share your Module and is very simple just follow the next steps:
Create a public repository to contain the code for the module. I usually use GitHub
Modify the package.json to include the new repository information
"repository": { "type":"git", "url":"http://github.com/user/repo-name" }, ...
Create an account at NPM
Use the npm adduser command in your local terminal and inside the project path
Type in the username, password and email that you register in step 2
Inside the project folder path use the npm publish command to Publish
Now that you publish your Node.js module and you can search it in the NPM registry.
If by any case you wish to remove your Module from the NPM registry you can do so with the npm unpublish <project name> --force command line












