“Versi package.json” Kode Jawaban

Apa arti versi "*" dalam ketergantungan paket 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 Versi

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

Versi package.json

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

Jawaban yang mirip dengan “Versi package.json”

Pertanyaan yang mirip dengan “Versi package.json”

Lebih banyak jawaban terkait untuk “Versi package.json” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya