Tilde(~) & Caret(^) In NPM packages

Amarjit Jha
Mar 10, 2022

--

Package versioning convention is : Major.Minor.Patch

A (~) before a package means It will load all the future (patch) releases of the package

A (^) before a package means It will load all the future (minor/patch) releases of the package

Thats not all. You can load packages in many other different ways. Refer to this link :

https://docs.npmjs.com/cli/v8/configuring-npm/package-json#dependencies

--

--

No responses yet