NPM is a package registry. People publish their reusable packages there which you can get for your own projects.
For example, express is a web framework. Its authors have published that on npm. Now you can go ahead and add express as a dependency in your own project. When you run npm install, it'll get the code for this framework and put it in your node_modules folder. You can now import and use this framework in your own project.
View all comments
Show parent comment
2
u/codittycodittycode Feb 23 '20
NPM is a package registry. People publish their reusable packages there which you can get for your own projects.
For example, express is a web framework. Its authors have published that on npm. Now you can go ahead and add express as a dependency in your own project. When you run npm install, it'll get the code for this framework and put it in your node_modules folder. You can now import and use this framework in your own project.