liveobject
v0.1.7
Published
Sync a javascript object with a json file.
Downloads
16
Readme
LiveObject
A fast way to store objects between sessions.
What is this?
This is a project for updating JSON files live from a variable.
How can I use it?
You just type npm i -s liveobject
into the terminal or command prompt.
Then you import the package using const {LiveObject} = require("liveobject")
.
Then, to make a variable you just use let myObject = LiveObject("./Path/To/Json-File-To-Start-From-And-Write-From.json")
.
When your done your code should look like this:
const { LiveObject } = require("liveobject");
let myObject = LiveObject(
"./Path/To/Json-File-To-Start-From-And-Write-From.json"
);
The live object is used the same way as a object variable so it is easy to understand.