# @wit03/async-localstorage

> A javascript/typescript async implemented localStorage library.

Latest version **1.1.0** (published 2021-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wit03/async-localstorage
pnpm add @wit03/async-localstorage
yarn add @wit03/async-localstorage
bun add @wit03/async-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.0 |
| Published | 2021-01-15 |
| First published | 2021-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | wit03 |
| Maintainers | wit03 |
| Keywords | localStorage, Async, async-localstorage, localstorage-async, wit03 |

## Links

- npm: https://www.npmjs.com/package/@wit03/async-localstorage
- Repository: https://github.com/wit03/async-localstorage
- Issues: https://github.com/wit03/async-localstorage/issues
- npm.io page: https://npm.io/package/@wit03/async-localstorage

## 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.1.0 (latest) — 2021-01-15
- 1.0.1 — 2021-01-14
- 1.0.0 — 2021-01-14

## README

[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/powered-by-black-magic.svg)](https://forthebadge.com)

[![forthebadge](https://forthebadge.com/images/badges/made-with-crayons.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/0-percent-optimized.svg)](https://forthebadge.com)

# Async LocalStorage

Async implemented localStorage library for javascript and typescript (coming soon).

## Why?
Since localStorage API is a synchronous and took so long to get or set value which is pretty annoying. Using Async LocalStorage will helps you deal with race condition.

## Installation
```ssh
// using
> npm install @wit03/async-localstorage
> yarn add @wit03/async-localstorage
```

## Getting Started
1. ES6
```js
import { setItem, getItem } from '@wit03/async-localstorage'

//setItem
setItem(key, data).then(()=> {
    //value has been set
})
//getItem
getItem(key).then((value)=> {
    //return value data
})
```
2. Module
```js
const asyncLocalStorage = '@wit03/async-localstorage'

//setItem
asyncLocalStorage.setItem(key, data).then(()=> {
    //value has been set
})
//getItem
asyncLocalStorage.getItem(key).then((value)=> {
    //return value data
})
```
## Contributions
feel free to create PR and also issues~

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