npm package.json

  • ~version “Approximately equivalent to version” See npm semver – Tilde Ranges & semver (7)
  • ^version “Compatible with version” See npm semver – Caret Ranges & semver (7)
  • version Must match version exactly
  • >version Must be greater than version
  • >=version etc
  • <version
  • <=version
  • 1.2.x 1.2.0, 1.2.1, etc., but not 1.3.0
  • http://sometarballurl (this may be the URL of a tarball which will be downloaded and installed locally
  • * Matches any version
  • latest Obtains latest release

References
http://stackoverflow.com/questions/22343224/difference-between-tilde-and-caret-in-package-json