superstore

Local storage, without the bugs, and an asynchronous API

superstore

Superstore is a simple lightweight asynchronous wrapper around the Web Storage APIs localStorage and sessionStorage. Its features include:

If you require an syncronous version please use superstore instead.

npm install superstore --save
bower superstore --save

Superstore is an uninstantiable module. All Superstore methods return a Promise which will resolve with the stored value. Its methods are:

var Superstore = require('superstore');
var store = new Superstore('localStorage', 'foo');
 
store.get('bar').then(function(value){
  \\Do something with value
});
  • JSDoc comments and automatically generating documentation.
  • Should clear and unset be merged?
  • Split the tests up into those that test the async layer and those that test the localStorage layer. (The point above is a dependency)