key-storage
v1.0.1
Published
Require style local storage wrapper with cookies fallback
Downloads
237
Readme
Key-Storage
Features
- Uses node.js require style modules
- For browser, not node.js
- Uses localStorage when possible
- Uses cookies if localStorage is not available
- Simple get, set and remove API
Installation
npm install key-storage
Usage
var storage = require('key-storage');
storage.set('key', 'value');
storage.get('key'); //=> 'value'
storage.remove('key');