Back to catalog

uckkk /

uckkk/dsh-semver

Verified

版本比较:语义化版本大小比较与范围判断(^~>=<=)

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: main@a9f37a94

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")

安装

dsh plugin add github:uckkk/dsh-semver

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-semver

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。

—/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.