These are concise but detailed notes on NPM, ideal for quick reference or documentation.
Semantic Versioning helps manage your code versions with meaning, Semantic means the numbers mean something.
Major.Minor.Patch
(e.g., 1.7.2
)
Example:
"moment": "^2.30.1"
^
(Caret): Automatically update to minor and patch versions.~
(Tilde): Only update patch versions.Install different types of dependencies using the following:
npm install package-name --save
Adds a package to dependencies (saved in package.json).