“package.json version” Réponses codées

Que signifie la version "*" dans la dépendance du package NPM

Finally there is the *, which while available, isn’t used as often. The primary reason for its less frequent use is the fact that it acts as a stand in for either the major, minor, or patch number and catches any version number for the place that it represents. For example a dependency with a version of * would equate to any version that was greater than or equal to 0.0.0, while 1.* would allow versions greater than or equal to 1.0.0 and less than 2.0.0.
Sonictron

NPM GET Package.json Version

 node -pe "require('./package.json')['version']"
Grotesque Gecko

package.json version

$(node -pe 'require(\"./package.json\")[\"version\"]')
RazorzMcLazorz

Réponses similaires à “package.json version”

Questions similaires à “package.json version”

Plus de réponses similaires à “package.json version” dans JavaScript

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code