Why NodeJs become special for some developers is,
- Single threaded event loop
- Good support for REST api
- non-blocking asynchronous
What is npm?
It is a online repository for releasing the open source NodeJs.Npm stands for Node Package Manager.It is a world largest software registry. Its an open source as well as free to use.
Node package manager(npm) : manages ecosystem of node modules/packages
A package contains :
It serves as documentation for what packages your project depends on.
When you shares your code with anyone, package.json will help to install node_modules in their computers.
To create package.json