【文件属性】:
文件名称:dot-json:从CLI或NodeJS轻松编辑json文件
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-09 17:37:03
JavaScript
点json
通过CLI或NodeJS轻松编辑json文件。
全局安装
npm install -g dot-json
或本地
npm install --save dot-json
从CLI使用
dot-json myfile.json user.name " John Doe "
dot-json myfile.json user.email " john@example.com "
dot-json myfile.json foo..bar baz
myfile.json现在看起来像
{
" user " : {
" name " : " John Doe " ,
" email " : " john@example.com "
},
" foo.bar " : " baz "
}
dot-json myfile.json
【文件预览】:
dot-json-master
----lib()
--------dot-json.js(5KB)
----test()
--------dot-json.js(26KB)
----README.md(2KB)
----.gitignore(27B)
----bin()
--------dot-json.js(2KB)
----package.json(923B)