Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/renzp94/storage

storage helper
https://github.com/renzp94/storage

localstorage localstorage-helper

Last synced: 3 months ago
JSON representation

storage helper

Awesome Lists containing this project

README

        

storage logo







Bundle size


Downloads


Version


License

# storage

一款零依赖、快速灵活、简单易用的localStorage API库

## 安装

```sh
npm install @renzp/storage
```

# 使用

```ts
import storage from '@renzp/storage'

const token = 'WEB_TOKEN'

// 设置值
storage.set(token, 'UwhbBh1qzxHXMetSIRI3mQ1X')
// 获取值
const test = storage.get(token)
// 清除值
storage.remove(token)
```