a storage lib which support sessionStorage and localStorage with the same api
npm install @ixu.me/storage
import storage from '@ixu.me/storage'
const storage = new Storage({ prefix: 'PAN' })
// localStorage
storage.set(key,val)
storage.get(key, parse)
// sessionStorage
storage.session.set(key, val)
storage.session.get(key, val)
set storage with key and val
get storage with key, return def if not find
remove storage with key
determine storage has the key
clear all storages