How to use the prefix into the `package.json` file? How are the means of prefix? Examples
- (~)version “Approximately equivalent to version”
1.2.x
1.2.0, 1.2.1, etc., but not 1.3.0
~1.2.3 := >=1.2.3 <1.(2+1).0 := >=1.2.3 <1.3.0~1.2 = > (Same as 1.2.x)~1 := > (Same as 1.x)~0.2.3 := >=0.2.3 <0.(2+1).0 := >=0.2.3 <0.3.0~0.2 := >(Same as 0.2.x)~0 := >= (Same as 0.x)~1.2.3-beta.2 := >=1.2.3-beta.2 <1.3.0
- (^)version “Compatible with version”
^1.2.3 := >=1.2.3 <2.0.0^0.2.3 := >=0.2.3 <0.3.0^0.0.3 := >=0.0.3 <0.0.4
(*) or ("")
Matches any versionversion1 - version2
Same as>=version1 <=version2
.range1 || range2
Passes if either range1 or range2 are satisfied.git...
git://github.com/user/project.git#commit-ish
git+ssh://user@hostname:project.git#commit-ish
git+ssh://user@hostname/project.git#commit-ish
git+http://user@hostname/project/blah.git#commit-ish
git+https://user@hostname/project/blah.git#commit-ish
user/repo
{
"name": "foo",
"version": "0.0.0",
"dependencies": {
"express": "expressjs/express",
"mocha": "mochajs/mocha#4727d357ea",
"module": "user/repo#feature\/branch"
}
}
tag
A specific version tagged and published astag
Seenpm-dist-tag
path/path/path
See Local Paths below