Small library without any dependencies for accessing localStorage, sessionStorage and url get params over the same interface.
Install with npm npm i --save @lightspots/storageprovider
import { StorageProvider } from "@lightspots/storageprovider";
const storage = StorageProvider.localStorage("aPrefix");
storage.set("KEY", "a special value");
// ... some code
storage.getAsString("KEY"); // returns "a special value"
storage.getAsNumber("KEY"); // returns undefined
For details see api doc