# weapp-storage

> 微信小程序 storage 组件

Latest version **1.0.1** (published 2019-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install weapp-storage
pnpm add weapp-storage
yarn add weapp-storage
bun add weapp-storage
```

## 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 | 2019-05-15 |
| First published | 2019-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | imweb |
| Maintainers | imweb |

## Links

- npm: https://www.npmjs.com/package/weapp-storage
- Repository: https://github.com/imweb/imweb-wxapp/tree/master/utils/weapp-storage
- npm.io page: https://npm.io/package/weapp-storage

## Recent versions

- 1.0.1 (latest) — 2019-05-15
- 1.0.0 — 2019-05-15

## README

# weapp-storage
微信小程序 storage 组件

## 使用

```
npm install -S weapp-storage
```

``` js
import { storage } from 'weapp-storage';

Page({
  async onLoad() {
    storage.set('test', 1);

    const hasKey = storage.has('test');
    const v = storage.get('test');

    console.log(v, hasKey);

    storage.remove('test');
    // storage.clear();
  },
});
```

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