npm.io
1.0.0 • Published 7 years ago

datastore-json

Licence
ISC
Version
1.0.0
Deps
0
Size
1 kB
Vulns
0
Weekly
0

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

Keywords