# common-util-gether

> 公共的方法集合

Latest version **1.0.1** (published 2020-07-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install common-util-gether
pnpm add common-util-gether
yarn add common-util-gether
bun add common-util-gether
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-07-20 |
| First published | 2020-07-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | hairen |
| Maintainers | hairenzhiyin |
| Keywords | taro, common, valitate |

## Links

- npm: https://www.npmjs.com/package/common-util-gether
- npm.io page: https://npm.io/package/common-util-gether

## Dependencies (4)

- [lrz](https://npm.io/package/lrz.md) 4.9.40
- [moment](https://npm.io/package/moment.md) 2.24.0
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.7.0
- [transform-runtime](https://npm.io/package/transform-runtime.md) ^0.0.0

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-07-20
- 1.0.0 — 2020-07-20

## README

# 扩展Taro 的前端本地存储


## 安装

npm i common-util-gether

## 使用
```bash
import storage from 'taro-storage'

### 获取会话内存储的值
storage.getSessionStorage(key)

### 写入会话内缓存
storage.setSessionStorage(key, value)

### 移除会话内的单个存储
storage.removeSessionStorage(key)

###本地永久存储,写入有效期，有效期内会取出来，失效后会清空
storage.setLocalStorage(key, value, exp)

###本地取出存储的值
storage.getLocalStorage(key)

###本地删除存储
storage.removeLocalStorage(key)

###移除本地所有的过期的缓存
storage.removeAllLocalExp()

```

---
_Source: https://npm.io/package/common-util-gether · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
