【文件属性】:
文件名称:yamltoxmljson:YAML 到 XML 或 JSON 转换器
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-18 08:59:23
JavaScript
YAML 到 XML 或 JSON 转换器
================================================== ======
安装
npm install -g yamltoxmljson
用法
usage: yamltoxmljson ./config.json
config.json 示例
{
" supportedLocales " : [ " en " , " de " ],
" dest " : " path/to/dest/locales " ,
" src " : " path/to/src/locales " ,
" type " : " xml " // default would be json
}
YAML 文件示例
---
en :
secure : Secure
amount : Amount
将编写一个这样
【文件预览】:
yamltoxmljson-master
----locales()
--------th.json(70B)
--------th.xml(126B)
--------en.xml(102B)
--------en.json(46B)
----example()
--------src()
----config.json(107B)
----README.md(576B)
----.gitignore(23B)
----bin()
--------index.js(2KB)
----package.json(705B)