文件名称:react-json-file:React性地将对象保存到文件
文件大小:92KB
文件格式:ZIP
更新时间:2024-03-02 06:33:37
json reactive vue file autosave
React性json文件
对JS对象进行突变时将其保存到JSON文件中
import reactiveJsonFile from 'reactive-json-file'
// Create a new JSON
const object = reactiveJsonFile ( './data.json' )
// Mutating the object automatically saves to file
object . name = 'John Doe'
:rocket: 安装
npm i reactive-json-file
:gear_selector: 选件
throttle
【文件预览】:
reactive-json-file-develop
----.xo-config(133B)
----.github()
--------workflows()
----lib()
--------reactive-json-file.js(779B)
----LICENSE(1KB)
----test()
--------reactive-json-file.spec.js(3KB)
----README.md(2KB)
----.gitignore(225B)
----package-lock.json(326KB)
----package.json(829B)