# async-get-set-store

> Async get/set/unset API for one object using localStorage

Latest version **1.0.2** (published 2016-12-19) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install async-get-set-store
pnpm add async-get-set-store
yarn add async-get-set-store
bun add async-get-set-store
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-12-19 |
| First published | 2016-12-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | gr2m |
| Keywords | localstorage, api, store |

## Links

- npm: https://www.npmjs.com/package/async-get-set-store
- Repository: https://github.com/gr2m/async-get-set-store
- Homepage: https://github.com/gr2m/async-get-set-store#readme
- Issues: https://github.com/gr2m/async-get-set-store/issues
- npm.io page: https://npm.io/package/async-get-set-store

## Dependencies (1)

- [humble-localstorage](https://npm.io/package/humble-localstorage.md) ^1.4.2

## 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.0.2 (latest) — 2016-12-19
- 1.0.1 — 2016-12-19
- 1.0.0 — 2016-12-19

## README

# async-get-set-store

> async get/set/unset API for one object using localStorage

[![Build Status](https://travis-ci.org/gr2m/async-get-set-store.svg?branch=master)](https://travis-ci.org/gr2m/async-get-set-store)
[![Coverage Status](https://coveralls.io/repos/gr2m/async-get-set-store/badge.svg?branch=master)](https://coveralls.io/github/gr2m/async-get-set-store?branch=master)
[![Dependency Status](https://david-dm.org/gr2m/async-get-set-store.svg)](https://david-dm.org/gr2m/async-get-set-store)
[![devDependency Status](https://david-dm.org/gr2m/async-get-set-store/dev-status.svg)](https://david-dm.org/gr2m/async-get-set-store#info=devDependencies)

## Usage

```js
const LocalStorageStore = require('async-get-set-store')
const store = new LocalStorageStore('cache')

// load state
store.cache.get().then(function (state) {})
// set state
store.cache.set({username: 'pat'}).then(function () {})
// clear state
store.cache.unset().then(function () {})
```

## License

[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)

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