1.0.2 • Published 1 month ago
useful-storage v1.0.2
useful-storage
# use npm
npm i useful-storage
# use yarn
yarn add useful-storage
# use pnpm
pnpm add useful-storage
import {
getLocalStorage,
getSessionStorage,
setLocalStorage,
setSessionStorage
} from "useful-storage";
const obj = {
a:1,b:2
};
setLocalStorage("obj",obj);
console.log(getLocalStorage("obj"))// output: {a:1,b:2}