# vue-use-localstorage-easy

> vue3, 简单同步localStorage. 版本号将同步vue3

Latest version **0.0.1** (published 2020-06-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-use-localstorage-easy
pnpm add vue-use-localstorage-easy
yarn add vue-use-localstorage-easy
bun add vue-use-localstorage-easy
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-06-01 |
| First published | 2020-06-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ludongmin |
| Maintainers | ludongmin |
| Keywords | vue, use, localStorage |

## Links

- npm: https://www.npmjs.com/package/vue-use-localstorage-easy
- npm.io page: https://npm.io/package/vue-use-localstorage-easy

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^3.0.0-beta.1

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2020-06-01

## README

# 一个在 vue3 里很方便地同步 localstorage

## Getting Started 使用指南

适用于浏览器。

### Installation 安装

npm install:

```sh
npm i vue-use-localstorage-easy --save
```

### Usage example 使用示例

```
<template>
  <div>
    <input type="text" v-model="item" />
    <p>
      <button @click="setZhangSan">点我设置成张三</button>
    </p>
    <p>{{ item }}</p>
    <small>可打开控制台查看localstorage</small>
  </div>
</template>

<script>
import useLocalstorage from 'vue-use-localstorage-easy'

export default {
  name: 'App',
  setup() {
    const [item] = useLocalstorage('name', '初始化的值')

    const setZhangSan = () => (item.value = '张三')

    return {
      item,
      setZhangSan,
    }
  },
}
</script>

```

### 考虑加入的功能

[] 可 reset 为初始值

## Authors 关于作者

- **LuDongmin**

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