simple-local

Simple wrapper for localStorage. Makes dealing with localStorage
less tedious. Calls JSON.parse and JSON.stringify for you and enables a
smooth debugging experience.
Installation
$ npm i --save simple-local
Overview
var local = require('simple-local');
local.set('myKey', {foo: 'bar', bin: 'baz'});
user.get('myKey')
Debugging
To enable debugging open your browser's console and set:
❯ localStorage.debug = 'simple-local';
API
.set(value)
Set the store to contain a value at key.
store.set('key', 12348899);
store.set('config', ['foo', 'bar']);
.get(namespace)
Get a value from the store. Emits a get event which can
be namespaced to allow for specific listeners.
store.get('config');
License
MIT ©
Yoshua Wuyts