# can-use-storage-check

> Checker of sync/async storage usability.

Latest version **1.0.3** (published 2018-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install can-use-storage-check
pnpm add can-use-storage-check
yarn add can-use-storage-check
bun add can-use-storage-check
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-01-16 |
| First published | 2018-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jake Oswaldo |
| Maintainers | jake-oswaldo |
| Keywords | storage, check, valid |

## Links

- npm: https://www.npmjs.com/package/can-use-storage-check
- Repository: https://github.com/jakkyo/canUseStorageCheck
- Homepage: https://github.com/jakkyo/canUseStorageCheck#readme
- Issues: https://github.com/jakkyo/canUseStorageCheck/issues
- npm.io page: https://npm.io/package/can-use-storage-check

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-01-16
- 1.0.2 — 2018-01-16
- 1.0.1 — 2018-01-16

## README

# can-use-storage-check

## Installing
```
npm i -S can-use-storage-check
```

## Usage

```js
import canUseStorageCheck from 'can-use-storage-check'

// sync
const storage = window.sessionStorage;
let canUseStorage;
canUseStorageCheck(storage).then((canUse) => {
  canUseStorage = canUse;
});

// async
let canUseLocalforage;
canUseStorageCheck(localforage).then((canUse) => {
  canUseLocalforage = canUse;
});
```

## API

### `canUseStorageCheck(storage)`

Checks storage usability by sync/async calling of `setItem`, `getItem` and `removeItem` methods.

## License

MIT © Jake Oswaldo

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