Publishing a module
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 applications. 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 temperature-converter module that we created in the Writing module code 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/temperature-converter.
Getting ready
This recipe relies on the Writing module code recipe of this chapter. We will be publishing the temperature-converter module that we created in that recipe to the npm registry. You can obtain the module code from the Writing module code recipe from the...