“Package.json версия” Ответ

Что означает версия "*" в зависимости от пакета 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 версия

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

Package.json версия

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

Ответы похожие на “Package.json версия”

Вопросы похожие на “Package.json версия”

Больше похожих ответов на “Package.json версия” по JavaScript

Смотреть популярные ответы по языку

Смотреть другие языки программирования