@kanety/js-store

0.1.2 • Public • Published

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.

Package Sidebar

Install

npm i @kanety/js-store

Weekly Downloads

48

Version

0.1.2

License

MIT

Unpacked Size

11.1 kB

Total Files

14

Last publish

Collaborators

  • kanety