# tiny-localstorage

> Just a simple HTML5/JS Local Storage things to store and get stuff!

Latest version **1.1.6** (published 2019-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install tiny-localstorage
pnpm add tiny-localstorage
yarn add tiny-localstorage
bun add tiny-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.1.6 |
| Published | 2019-10-21 |
| First published | 2019-10-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Cleeve Morris |
| Maintainers | joaocarlosalves |
| Keywords | local, storage, store, html5, js |

## Links

- npm: https://www.npmjs.com/package/tiny-localstorage
- Repository: https://github.com/joaocarlosalves/simple-localstorage
- Homepage: https://github.com/joaocarlosalves/simple-localstorage#readme
- Issues: https://github.com/joaocarlosalves/simple-localstorage/issues
- npm.io page: https://npm.io/package/tiny-localstorage

## Dependencies (1)

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

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.6 (latest) — 2019-10-21
- 1.1.5 — 2019-10-04
- 1.1.4 — 2019-10-04
- 1.1.3 — 2019-10-04
- 1.1.2 — 2019-10-04
- 1.1.1 — 2019-10-03
- 1.1.0 — 2019-10-03
- 1.0.9 — 2019-10-03
- 1.0.8 — 2019-10-03
- 1.0.7 — 2019-10-03
- 1.0.6 — 2019-10-03
- 1.0.5 — 2019-10-03
- 1.0.4 — 2019-10-03
- 1.0.3 — 2019-10-03
- 1.0.2 — 2019-10-03
- … 2 more at https://npm.io/package/tiny-localstorage/versions

## README

## What is that?
Tiny "TLS" Local Storage it's just a HTML5/JS Local Storage "things" to store and get stuff!<br/>

## Installing
Be sure you have Node JS installed.<br/>
`npm i tiny-localstorage`<br/>

## Usage
First thing is import TLS<br/>
`import TLS from 'tiny-localstorage'`<br/>

Now, you can save TLS into a variable (optional, you can use directly)<br/>
`let tls = TLS`<br/><br/>

####  You can be happy with these methods()

• **SET**<br/>
Insert one item like a json object or some variable passing its name as string type and the object itself as parameter<br/>
`tls.set("itemName", itemContent)`
<br/>

• **GET**<br/>
Get one item passing its name as string parameter<br/>
`tls.get("itemName")`<br/>

• **DELETE**<br/>
Delete one item passing its name in string format as parameter<br/>
`tls.del("itemName")`<br/>

• **CHECK**<br/>
Return true if exist a item passing its name as string parameter<br/>
`tls.chk("itemName")`<br/>

• **CLEAR**<br/>
...and all storage is gone! Forever...<br/>
`tls.clr()`<br/><br/>

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