node-version-matches:如果当前节点版本与给定的semver表达式匹配,则返回true

时间:2021-04-16 02:11:49
【文件属性】:
文件名称:node-version-matches:如果当前节点版本与给定的semver表达式匹配,则返回true
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-16 02:11:49
JavaScript 节点版本匹配 如果当前节点版本与给定的semver表达式匹配,则返回true。 > const nodeVersionMatches = require ( 'node-version-matches' ) > // assuming we're using node version 10 > nodeVersionMatches ( '>=7.6.0' ) true > nodeVersionMatches ( '<7> // optional: pass in a specific node version as the second arg. > nodeVersionMatches ( '<7>。
【文件预览】:
node-version-matches-master
----test.js(611B)
----.travis.yml(47B)
----LICENSE(1KB)
----README.md(1KB)
----index.js(235B)
----package-lock.json(31KB)
----package.json(704B)

网友评论