react-json-file:React性地将对象保存到文件

时间:2024-03-02 06:33:37
【文件属性】:

文件名称: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 -节流节省的毫秒 。 保存已在每个事件循环的末尾进行批处理,但这会增加基于时间的限制。 fs ( )-传入自定义文件系统。 默认为原生Node.js f


【文件预览】:
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)

网友评论

  • 这个是vue的么?