npm.io
0.1.7 • Published 6 years ago

liveobject

Licence
ISC
Version
0.1.7
Deps
1
Size
2 kB
Vulns
1
Weekly
0

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.

Keywords