Back to catalog

uckkk /

dsh-unit

Verified

@{name=dsh-unit; version=0.1.0; description=单位换算:长度/重量/温度/数据量/时间单位换算; type=module; main=lib/index.js; exports=; files=System.Object[]; dsh=; keywords=System.Object[]; author=istone <ad571@qq.com>; license=MIT; peerDependencies=}.description

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

dsh-unit · 单位换算

长度/重量/温度/数据量/时间单位换算。纯 Node 实现。

提供的工具

工具 作用
convert_unit 数值单位换算

安装

dsh plugin add dsh-unit

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-unit"

用法示例

10 公里等于多少英里
→ 调用 convert_unit(value=10, from="km", to="mi")
/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.