Preparing and publishing your module to npm
This recipe will walk you through how to prepare and publish your module to the npm
registry. Publishing your module to the npm
registry will make it available for other developers to find and include in their application. This is how the npm
ecosystem operates: developers will author and publish modules to npm
for other developers to consume and reuse in their Node.js application.
In the recipe, we will be publishing the reverse-sentence
module that we created in the Implementing your module recipe of this chapter to the npm
registry. Specifically, we'll be publishing our module to a scoped namespace, so you can expect your module to be available at @npmusername/reverse-sentence
.
Getting ready
This recipe relies on the Implementing your module recipe of this chapter. We will be publishing the reverse-sentence
module that we created in that recipe to the npm
registry. You can obtain the module code from the Implementing your...