Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save roachhd/a34dbe8a46e1aae122bf to your computer and use it in GitHub Desktop.

Select an option

Save roachhd/a34dbe8a46e1aae122bf to your computer and use it in GitHub Desktop.
nmp package.json how to declare dependencies

####Official npmjs documentation which describes all methods for version specificity

npm docs package.json

 version Must match version exactly
>version Must be greater than version
>=version etc
<version
<=version
~version "Approximately equivalent to version" See semver(7)
^version "Compatible with version" See semver(7)
1.2.x 1.2.0, 1.2.1, etc., but not 1.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment