datastore-json
v1.0.0
Published
Simple JSON based data storage.
Downloads
2
Readme
Datastore-JSON
Initializing A Datastore
const Datastore = require("datastore-json").init();
Using A Datastore
const Storage = Datastore.new("data"); // create a new datastore
Storage.set("some key", "some value"); // without permanent storage
Storage.set("some key", "some value").save(); // with permanent storage
var value = Storage.get("some key"); // return a value