1.0.1 • Published 2 years ago
npm-modules-as-packages v1.0.1
Creating Node.js modules
Node.js modules are a type of package that can be published to npm.
- Create a package.json file
- Create the main file that will be loaded when your module is required by another application
- Publish your package to npm: To publish your private package to the npm registry run
npm publish
- 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.