The Symbols In Your package.json File

Symbols relating to package version

equality

less than/greater than

hyphen

X marks the spot

  • * := >=0.0.0 (Any version satisfies)
  • 1.x := >=1.0.0 <2.0.0 (Matching major version)
  • 1.2.x := >=1.2.0 <1.3.0 (Matching major and minor versions)

tilde

carat

Relating to package scope — the “at” sign

"@testing-library/react": "^9.3.2","react": "^16.13.1",

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store