【文件属性】:
文件名称:yamloboros:yaml2json和json2yaml转换器
文件大小:75KB
文件格式:ZIP
更新时间:2021-02-11 17:09:16
Rust
亚姆罗伯洛斯
极其简单的yaml2json和json2yaml CLI工具。 基本上,只是围绕着和CLI包装。
安装
cargo install --git ssh://git@github.com/swift-nav/yamloboros.git --bins
或查看发布页面:
yaml2json
yaml2json << EOF>
> foo:
> - 1
> - 2
> - abc
> bar:
> baz: quux
>
> EOF
# Output: {"foo":[1,2,"abc"],"bar":{"baz":"quux"}}
json2yaml
json2yaml << EOF>
> {"foo":[1,2,"abc"],"bar":{"baz":"quux"}}
>
> EOF
# Output:
# ---
# bar:
# b
【文件预览】:
yamloboros-master
----.dependabot()
--------config.yml(183B)
----Cargo.toml(395B)
----.github()
--------workflows()
----Cargo.lock(2KB)
----src()
--------json2yaml.rs(840B)
--------yaml2json.rs(840B)
----img()
--------ouroboros.png(72KB)
----LICENSE(1KB)
----README.md(1KB)
----Makefile.toml(696B)
----.gitignore(8B)