# v-localstorage

> local storage for vue

Latest version **1.0.5** (published 2019-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install v-localstorage
pnpm add v-localstorage
yarn add v-localstorage
bun add v-localstorage
```

## 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.5 |
| Published | 2019-12-20 |
| First published | 2017-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | guanmac |
| Maintainers | guanmac |
| Keywords | local, storage, vue |

## Links

- npm: https://www.npmjs.com/package/v-localstorage
- npm.io page: https://npm.io/package/v-localstorage

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.3.4

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-12-20
- 1.0.3 — 2017-06-27

## README

# vue-local-storage
local storage fro vue2.x

## Install 
you can install it via npm:
` npm install --save v-localstorage`

## Usage

```
import Vue from 'vue';
import VueLocalStorage from 'v-localstorage';
Vue.use(VueLocalStorage);

//the brower is support? it will return true or false;
this.$ls.isSupport;  

//set
this.$ls.set('my_key',{ 'firstName':'guan', 'lastName':'mac'});

//get
this.$ls.get('my_key');
// result: { "firstName":"guan", "lastName":"mac"}

//delete a key 
this.$ls.del('my_key');

//get local storage length
this.$ls.length;

// clear all data
this.$ls.clear();

```

## License

[MIT](https://opensource.org/licenses/MIT)

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