# asyncstorage-mock-another

> Another package to mock the AsyncStorage API from React Native

Latest version **1.0.1** (published 2017-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install asyncstorage-mock-another
pnpm add asyncstorage-mock-another
yarn add asyncstorage-mock-another
bun add asyncstorage-mock-another
```

## 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.0.1 |
| Published | 2017-05-04 |
| First published | 2017-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Andre Staltz |
| Maintainers | staltz |

## Links

- npm: https://www.npmjs.com/package/asyncstorage-mock-another
- Repository: https://github.com/staltz/asyncstorage-mock-another
- Homepage: https://github.com/staltz/asyncstorage-mock-another#readme
- Issues: https://github.com/staltz/asyncstorage-mock-another/issues
- npm.io page: https://npm.io/package/asyncstorage-mock-another

## Recent versions

- 1.0.1 (latest) — 2017-05-04
- 1.0.0 — 2017-05-04

## README

# AsyncStorage Mock Another

Another package (there is already [asyncstorage-mock](https://www.npmjs.com/package/asyncstorage-mock)) to mock the AsyncStorage API from React Native. This will give you a non-persistent in-memory database based on a simple JavaScript object. Use this package for testing "headless" React Native apps.

## Installation

```
npm install asyncstorage-mock-another
```

## Usage

```js
var AsyncStorage = require('asyncstorage-mock-another')

AsyncStorage.setItem('age', 22, (err1) => {
  AsyncStorage.getItem('age', (err2, ageValue) => {
    console.log('ageValue', ageValue, 'should be 22')
  })
})
```

## License

MIT

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