bstore
a simple localstorage with memory fallback for browser.
Install
$ npm install --save bstore
Usage
// import; ls;ls; // value ls; // requireconst ls = ls;ls; // value ls;
API
set(key, value)
set storage with key and value
get(key)
get storage with key, return undefined if not find.
remove(key)
remove storage with key.
key(index)
get key by index.
has(key)
if has key return true else false.
clear()
clear all storage
forEach(cb)
forEach the storages and call the cb function with each storage
getAll()
get all the storages.