# @web-dev-media/localstorage

> a lightweight javascript to handle localstorage.

Latest version **1.3.4** (published 2022-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @web-dev-media/localstorage
pnpm add @web-dev-media/localstorage
yarn add @web-dev-media/localstorage
bun add @web-dev-media/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.3.4 |
| Published | 2022-10-19 |
| First published | 2019-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 304.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Web Dev Media UG |
| Maintainers | web-dev-media |
| Keywords | localstorage, handle, caching, cache, browser, browsercache, performance, sorage, local, lightweight |

## Links

- npm: https://www.npmjs.com/package/@web-dev-media/localstorage
- Repository: https://github.com/web-dev-media/localstoragejs
- Homepage: https://github.com/web-dev-media/localstoragejs#readme
- Issues: https://github.com/web-dev-media/localstoragejs/issues
- npm.io page: https://npm.io/package/@web-dev-media/localstorage

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.3.4 (latest) — 2022-10-19
- 1.3.1 — 2022-10-19
- 1.0.2 — 2019-12-27
- 1.0.1 — 2019-12-27
- 1.0.0 — 2019-07-29

## README

# localstorage made simple
**a lightweight javascript to handel localstorage.**

## Install
```sh
npm install --save @web-dev-media/localstorage
```

## Usage
#### require
```js
const localstorageJs = require("@web-dev-media/localstorage");

const cacheOptions = {
    cacheTime: 24 * 60,
    cacheKey: 'fooo_bar',
    data: 'foo_abcd',
};

localstorageJs.set(
    cacheOptions.cacheKey,
    cacheOptions.data,
    cacheOptions.cacheTime
);

let dataFromLocalCache = localstorageJs.get(cacheOptions.cacheKey);

localstorageJs.remove(cacheOptions.cacheKey)
```

#### contact
* info@web-dev-media.de
* https://web-dev-media.de

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