0.1.2 • Published 5 years ago

@kanety/js-store v0.1.2

Weekly downloads
24
License
MIT
Repository
github
Last release
5 years ago

js-store

A simple web storage wrapper saving json data.

Installation

Install from npm:

$ npm install @kanety/js-store --save

Usage

import JsStore from '@kanety/js-store'

let store = new JsStore({
  type: 'session',  // or 'local'
  key: 'YOUR_STORAGE_KEY'
});

// set
store.set({ key: 'value' });

// get
let data = store.get();

// remove
store.remove();

License

The library is available as open source under the terms of the MIT License.