> 1 What is NPM

  • npm stands for Node Package Manager and most of JavaScript program is registered to npm as a package
  • npm has more than 700K package registered; the world largest IT ecosystem
  • yarn is alternative of npm ; created by Facebook

> 2 package.json

  • The same package can have different functionalities depending on its version; package.json file records all the installed package
  • The command to create packge.json
$ npm init

Image for post

Image for post

package name : The name of package; name property of package.json

version : npm version is strictly managed (we will go through deeply later)

entry point : entry point for JavaScript executable file. Often the last module.exports file

git repository : repository property of package.json

keywords : enable user to find the package easily in npm official site (https://npmjs.comkeywords property of package.json

#nodejs #javascript #web development

10 Things you Should Know about NPM
5.90 GEEK