READMESource: main@e0486ca9
dsh-semver · 版本比较
语义化版本比较与范围判断。纯 Node 实现。
提供的工具
| 工具 | 作用 |
|---|---|
compare_versions |
比较版本大小 / 判断是否满足范围 |
安装
dsh plugin add dsh-semver
安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-semver"。
用法示例
1.2.3 和 1.10.0 谁新
→ 调用 compare_versions(a="1.2.3", b="1.10.0")
No comments yet. Be the first to write one.