An open API service indexing awesome lists of open source software.

https://github.com/iamhefang/useful-storage

更好用的前端Storage库
https://github.com/iamhefang/useful-storage

Last synced: 3 months ago
JSON representation

更好用的前端Storage库

Awesome Lists containing this project

README

        

# useful-storage

```shell script
# use npm
npm i useful-storage

# use yarn
yarn add useful-storage

# use pnpm
pnpm add useful-storage
```

```js
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}
```