Package Json 1.11.111. What? Why would you package Jason?

Semantic Versioning

But there is more

I want the package that has this functionality, but if there is a patch that is fine.

Syntax in package.json

{
"name" : "MyAppOrCodeName",
"description" : "Almost always never filled in",
"author" : "Joe Bloggs <Joe@Bloggs.org>",
"dependencies" : []
}

I want this version only — without any patches or anything. Lock this version in only. Forever.

{...
"dependencies" : [
"the-package-name-is-here" : "X.Y.Z"
]
...}

I want this version and any patch version above it.

{...
"dependencies" : [
“the-package-name-is-here” : “~X.Y.Z”,
“the-package-name-is-here” : “~1.2.x”
]
...}

I want this version and any other minor version above it

{...
"dependencies" : [
“the-package-name-is-here” : “^X.Y.Z”
]
...}

--

--

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