Book Image

Mastering JavaScript Promises

Book Image

Mastering JavaScript Promises

Overview of this book

Table of Contents (16 chapters)
Mastering JavaScript Promises
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Node Package Manager – NPM


One of the best virtues of using Node.js is NPM or Node Package Manager. It's an effective way for developers to collaborate on ideas by sharing codebase in a much faster way. However, this is not it. The best use of NPM is to download and install a different simple directory of code called the package. It can be done easily by just typing in simple commands (such as npm install express) that will download and install the entire package on your machine. With every package, there is a .json file that has the metadata about the package. In Unix-based environments, Node Package Managers not only help in downloading and setting up other packages, but are also able to update Node.js itself.

NPM is also another reason why Node.js is getting popular in the community of JavaScript developers. Unlike other languages where uploading libraries and binaries are very time-consuming and permission-oriented. With NPM, it's a much faster and less-permission oriented model that...