Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Releasing & maintaining modules for nodejs

Releasing & maintaining modules for nodejs

Problem

So I've just released my first Module for nodejs.

Things that I did:

  • picked a SEO-oriented name
  • posted the code on github
  • added the module to the list of modules
  • published the module via npm publish

Now,

  1. Do I need to do more than that, to make sure who needs it will get to my module?
  2. How do I push updates with npm? I tried doing npm publish again, but it says I need to unpublish first, or change versions or do crazy things.
Problem courtesy of: Silviu-Marian

Solution

Do I need to do more than that, to make sure who needs it will get to my module?

You've covered your bases as far as the basics are concerned. You may consider writing in to blog sites like DailyJS or post to some mailing lists to get the word-of-mouth out, but having your code on GitHub and your package on NPM is a solid start.

How do I Push Updates with npm?

Once you've published a specific version of your module, you should not push a change to that same version--this ensures that people that expect a certain version of your module to behave a certain way can ensure that it does so. If you need to update your module, you should bump the version number in your package.json file and publish that.

Be sure to stick to semantic versioning when picking version numbers, so version matchers like ~3.0.5 work. See http://npmjs.org/doc/json.html#version for more details.

Solution courtesy of: Michelle Tilley

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Releasing & maintaining modules for nodejs

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×