# storage-manager-ts

> A storage manager that supports storage managing with local and Redis storages

Latest version **1.2.2** (published 2020-09-14) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install storage-manager-ts
pnpm add storage-manager-ts
yarn add storage-manager-ts
bun add storage-manager-ts
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2020-09-14 |
| First published | 2020-02-19 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dani Tseiltin |
| Maintainers | danitseitlin |
| Keywords | storage, local storage, storage utils |

## Links

- npm: https://www.npmjs.com/package/storage-manager-ts
- Repository: https://github.com/danitseitlin/storage-manager-ts
- Homepage: https://github.com/danitseitlin/storage-manager-ts#readme
- Issues: https://github.com/danitseitlin/storage-manager-ts/issues
- npm.io page: https://npm.io/package/storage-manager-ts

## 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.2.2 (latest) — 2020-09-14
- 1.2.1 — 2020-09-13
- 1.2.0 — 2020-09-05
- 1.1.9 — 2020-08-09
- 1.1.8 — 2020-08-09
- 1.1.7 — 2020-08-09
- 1.1.6 — 2020-08-09
- 1.1.5 — 2020-08-09
- 1.1.4 — 2020-07-21
- 1.1.3 — 2020-07-21
- 1.1.2 — 2020-07-21
- 1.1.1 — 2020-07-21
- 1.1.0 — 2020-07-21
- 1.0.9 — 2020-07-21
- 1.0.8 — 2020-07-21
- … 16 more at https://npm.io/package/storage-manager-ts/versions

## README

# Storage Manager &middot; [![GitHub license](https://img.shields.io/badge/license-BSD%203%20Clause-blue.svg)](https://github.com/danitseitlin/storage-manager-ts/blob/master/LICENSE) [![npm version](http://img.shields.io/npm/v/storage-manager-ts.svg?style=flat)](https://npmjs.org/package/storage-manager-ts "View this project on npm") ![CI](https://github.com/danitseitlin/storage-manager-ts/workflows/CI/badge.svg)
## About
A project that contains utilities for local storage & general storage purposes

## Quick start
### Initialize your local storage manager:
```
import { LocalStorage } from 'storage-manager-ts';
const storage = new LocalStorage();
const value = storage.get('key');
```

## Local storage functions list
| Function             | Description                                                                                               |
|:----------           |:--------------------------------------------------------------------------------------------------------- |
| get                  | Returning the value of a key                                                                              |
| set                  | Setting the value of a key                                                                                | 
| delete               | Deleting a key                                                                                            |
| getKeys              | Returning all the keys                                                                                    |
| convertKeyListToJSON | Building a JSON of the key + value                                                                        |

## Helper functions list
| Function   | Description                                                                                               |
|:---------- |:--------------------------------------------------------------------------------------------------------- |
| filterKeys | Returning if the keys match with a regex, * will indicate that an a key starts with the regex after the * |
| filterKey  | Returning if a key match with a regex, * will indicate that an a key starts with the regex after the *    |

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