npm is the official package manager for Node. When we deploy a module to npm, we are uploading it to the official npm repository (which happens to be a CouchDB database).
Now that we've created a module, we can share it with the rest of the world using the same integrated tool that we retrieve modules with; that is,
Building on the final state of
mp3dat from the previous recipe, Extending a module's API (including all the changes we made in the There's More… section so that we can accept streams or filenames via the same
stat method and our module also emits events), we'll make sure this canonical
mp3dat is in a directory called
Before we can deploy to
npm, we need to make a
package.json file; so, ...