【文件属性】:
文件名称:json-manager:JSON 管理器读取更新集从文件中获取
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-15 01:49:26
JavaScript
JSON 管理器
安装
npm i -S json-manager
选项
默认值
{ " dir " : " "
, " target " : " "
, " watch " : false
, " autoSave " : true
}
例子
var JSONMGR = require ( 'json-manager' )
var json = new JSONMGR ( { dir : "./" , target : "package.json" , watch : true } )
json . init ( ) . then ( console . log . bind ( console ) )
json . on ( "changed" , function ( j ) { console . log ( j . toJSON ( ) ) } )
职能
在里
【文件预览】:
json-manager-master
----.gitignore(19B)
----README.md(2KB)
----example.js(208B)
----package.json(759B)
----index.js(4KB)