Creating Node Modules

Part 4 - Publishing

Posted by Joel Lord on November 21th, 2015

Ok, so you'vre created your own module, you've prepared your package file and you ensure that your package is thoroughly tested. Let's publish it !

Ready for fame?

Are you finally ready to publish your node module? Are you ready for fame? Here is the last and final step to publish your module.

Check if it already exits

I guess I should've mentioned this in part 1 but before you try to create a new module, make sure that there isn't one that exists already with the same name. Also check for similar functionalities. Is it worth it to take the time to publish it if there is already one similar module? Does your module accomplish something different from the others out there? If you are sure that your baby is unique and worth shring, go ahead and publish!

Publish it

If you've followed all the steps for far, publishing your module should be a simple matter of entering this command.

npm publish

Now go to npmjs.com and check for your module. It should now be there and available for the whole world to npm install !

Summary

That's all folks ! You now have your npm module published. If you have any questions or comments, feel free to drop me a DM on Twitter or an email. You will find the links at the bottom of this page.

<