1.0.1 • Published 2 years ago

npm-modules-as-packages v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Creating Node.js modules

Node.js modules are a type of package that can be published to npm.

  1. Create a package.json file
  2. Create the main file that will be loaded when your module is required by another application
  3. Publish your package to npm: To publish your private package to the npm registry run npm publish
  4. To see your private package page, visit https://npmjs.com/package/*package-name, replacing package-name with the name of your package. Private packages will say private below the package name on the npm website.