2014年8月19日 星期二
[NodeJs] npm package.json dependencies version (npm package 版本寫法整理)
version Must match version exactly
>version Must be greater than version
>=version etc
<version
<=version
~version "Approximately equivalent to version"
^version "Compatible with version"
1.2.x 1.2.0, 1.2.1, etc., but not 1.3.0
http://... See 'URLs as Dependencies' below
* Matches any version
"" (just an empty string) Same as *
version1 - version2 Same as >=version1 <=version2.
range1 || range2 Passes if either range1 or range2 are satisfied
git... See 'Git URLs as Dependencies' below
user/repo See 'GitHub URLs' below
>version Must be greater than version
>=version etc
<version
<=version
~version "Approximately equivalent to version"
^version "Compatible with version"
1.2.x 1.2.0, 1.2.1, etc., but not 1.3.0
http://... See 'URLs as Dependencies' below
* Matches any version
"" (just an empty string) Same as *
version1 - version2 Same as >=version1 <=version2.
range1 || range2 Passes if either range1 or range2 are satisfied
git... See 'Git URLs as Dependencies' below
user/repo See 'GitHub URLs' below
訂閱:
文章 (Atom)