useful-storage
v1.0.2
Published
更好用的Storage
Downloads
9
Readme
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}