1.0.1 • Published 2 years ago

local-storage-database v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NPM

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

The MIT License (MIT)

Copyright (c) 2014-2017 js-data project authors