datastore-json

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i datastore-json

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.37 kB

Total Files

3

Last publish

Collaborators

  • pyxelx