dsh-yaml

August 19, 2026 · View on GitHub

解析 YAML 为 JSON,序列化 JSON 为 YAML。纯 Node 实现。

提供的工具

工具作用
yaml_to_jsonYAML → JSON
json_to_yamlJSON → YAML

安装

dsh plugin add dsh-yaml

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

用法示例

把这段 YAML 转成 JSON
→ 调用 yaml_to_json(text="name: test\nage: 1\n")

安装

dsh plugin add github:uckkk/dsh-yaml

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

安装

dsh plugin add github:uckkk/dsh-yaml

使用

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

许可

MIT

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