npm package manager code example
Example 1: what is npm
npm is a package manager for the JavaScript programming language.
It is the default package manager for the JavaScript runtime environment Node.js
It consists of a command line client, also called npm, and an online database
of public and paid-for private packages, called the npm registry.
Example 2: npm package version
// How to increment your project version
Ex: 1.0.0
* npm version patch ---> 1.0.1
* npm version minor ---> 1.1.0
* npm version major ---> 2.0.0
npm version [<newversion> | major | minor | patch | premajor |
preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
Example 3: npm
json-server --watch db.json
Example 4: js packages
//Time js package
https://momentjs.com/
http://jsfiddle.net/q8y9nbu5/ //For testing moment.js
Example 5: npm
// amazing simple tool for NodeJs Developer
npm i natural-utility -S