localforage npm code example
Example 1: localForage
// Save our users.
var users = [ {id: 1, fullName: 'Matt'}, {id: 2, fullName: 'Bob'} ];
localForage.setItem('users', users, function(result) {
console.log(result);
});
Example 2: localforage removeitem
localforage.removeItem(key, callback);