Graceful storage solution with namespace.
npm install storage4ns --save
or
yarn add storage4ns
import NStorage from "storage4ns";
const nstorage = new NStorage("sys-admin");
// Put storage item
nstorage.put("access-token", "token-secret");
// Get storage item
let userName = nstorage.get("user-name");
console.log(userName);
// Remove storage item
nstorage.remove("user-name");
// Clears storage
nstorage.clear();