dsh-yaml
文件与数据 活跃维护

dsh-yaml

uckkk/dsh-yaml

支持YAML与JSON格式双向互转,兼容主流YAML版本规范,转换过程保留原有数据结构与注释,无需复杂配置即可快速完成两种数据格式的无损适配,可直接嵌入各类开发工作流

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
6 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-yaml
git clone https://github.com/uckkk/dsh-yaml.git
git clone git@github.com:uckkk/dsh-yaml.git
README.md main

dsh-yaml · YAML ↔ JSON 转换

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

提供的工具

工具 作用
yaml_to_json YAML → JSON
json_to_yaml JSON → YAML

安装

dsh plugin add dsh-yaml

安装后在 profile 的 package.json 的 dsh.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

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