# jquery-localstorage

> A simple, lightweight jQuery plugin for reading, writing and deleting html5 local storage

Latest version **1.0.1** (published 2019-09-07) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-09-07 |
| First published | 2019-09-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | hosokawa.takahiro |
| Maintainers | hosokawat |
| Keywords | jquery, localstorage |

## Links

- npm: https://www.npmjs.com/package/jquery-localstorage
- Repository: https://hosokawat@github.com/hosokawat/jquery-localstorage
- Homepage: https://github.com/hosokawat/jquery-localstorage#readme
- Issues: https://github.com/hosokawat/jquery-localstorage/issues
- npm.io page: https://npm.io/package/jquery-localstorage

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) ^3.4.1

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-09-07

## README

[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
[![Build Status](https://travis-ci.org/hosokawat/jquery-localstorage.svg?branch=master)](https://travis-ci.org/hosokawat/jquery-localstorage)

# jquery-localstorage
A simple, lightweight jQuery plugin for reading, writing and deleting html5 local storage

## Installation
### CDN
Just put this tag:
```html
<script src="https://cdn.jsdelivr.net/gh/hosokawat/jquery-localstorage/jquery.localstorage.min.js"></script>
```
### Download

Include script after the jQuery library (unless you are packaging scripts somehow else):
```html
<script src="/path/to/jquery.localstorage.js"></script>
```
## Usage
Save:
```javascript
value = $.localStorage('key', 'value');
```
Read:
```javascript
value = $.localStorage('key');
```
Read all (values.constructor is Storage): 
```javascript
values = $.localStorage();
```
Initialization result: 
```javascript
result = $.support.localStorage;
```
## IO methods
Save:
```javascript
io = $.localStorage.io('key');
value = io.write("value");
```
Read:
```javascript
io = $.localStorage.io('key');
value = io.read();
```
Remove:
```javascript
io = $.localStorage.io('key');
io.remove();
```
Key:
```javascript
io = $.localStorage.io('key');
io.key;
```

## Jasmine Test
[TestPage](http://hosokawat.github.io/jquery-localstorage/test/jasmine.html)

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