Publishing a Node.js Packaged Module to the NPM Registry
In the previous section, you created a local Node.js Packaged Module using the npm pack
command. You can also publish that same module to the NPM registry at http://npmjs.org.
When modules are published to the NPM registry, they are accessible to everyone, via the npm
utility discussed earlier. The registry therefore allows you to distribute your modules and applications to others more easily.
The following steps describe the process of publishing a module to the NPM registry. These steps assume that you have completed steps 1–5 from the previous section:
1. Create a public repository to contain the code for the module. Then push the contents of the .../censorify
folder up to that location. ...
Get Node.js, MongoDB, and AngularJS Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.