0.0.2 • Published 8 years ago

otherstore v0.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

otherstore

Persistent localStorage with Cookie fallback for "Private mode" on iOS devices. Uses JSON to serialize/deserialize data. Supports prefixes. No extra sugar.

Install

$ npm install --save otherstore

Usage

var store = require('otherstore');

store.setPrefix('myapp');
store.set('hello from', { message: 'the other side' });

console.log('hello from', store.get('hello from').message); // hello from the other side

License

MIT © Max Degterev