local-storage-database
v1.0.1
Published
<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="96" height="96" />
Downloads
7
Readme
Local Storage Database consistency with objects.
Simple class to store data and manage it easily.
Just getting started?
Import module:
import Collection from "../release/localDatabase";
Create the instance (or many):
let myCollection = new Collection("test");
Interact with it:
let myCollection = new Collection("test");
// set some data
myCollection.set({ test: 2323, gra: 23 });
// update it with new data
myCollection.set({ awesome: 2323 });
// get entire json db
console.log(myCollection.get());
// or single key
console.log(myCollection.get("test"));
// remove single key
console.log(myCollection.remove("gra"));
// remove entire db
console.log(myCollection.remove());
Need help?
Please post a question on Stack Overflow. This is the preferred method.
You can also chat with folks on the Slack Channel. If you end up getting your question answered, please still consider consider posting your question to Stack Overflow (then possibly answering it yourself). Thanks!
Want to contribute?
Awesome! You can get started over at the Contributing guide.
And thank you!
License
Copyright (c) 2014-2017 js-data project authors