A simple localStorage with memory storage fallback in browser.
$ npm install --save bstore
// import
import ls from bstore;
ls.set('key','value');
ls.get('key'); // value
ls.remove('key');
// require
const ls = require('bstore')
ls.set('key','value');
ls.get('key'); // value
ls.remove('key');
set storage with key and value
get storage with key, return undefined if not find.
remove storage with key.
get key by index.
if has key return true else false.
clear all storage
forEach the storages and call the cb function with each storage
get all the storages.