Brent Keller

npm version syntax

I have a hard time remembering what the semver syntax for npm packages is, so these things help me remember.

Version syntax

SyntaxDescription
1.1.12Pinned to exact version
~1.1.12 or 1.1.xPatch versions from 1.1.12 and higher
1.1.xPatch versions from 1.1.0 and higher
^1.1.12Minor and patch versions from 1.1.12 and higher
1.xMinor and patch versions from 1.0 and higher
xAll versions
© 2022 Brent Keller