# @hadx/offline-storage

> @hadx/offline-storage

Latest version **0.0.3** (published 2020-03-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install @hadx/offline-storage
pnpm add @hadx/offline-storage
yarn add @hadx/offline-storage
bun add @hadx/offline-storage
```

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-03-02 |
| First published | 2020-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arthur Dao |
| Maintainers | newbiebr |

## Links

- npm: https://www.npmjs.com/package/@hadx/offline-storage
- Repository: https://github.com/NewBieBR/hadex-offline-storage
- Homepage: https://github.com/NewBieBR/hadex-offline-storage#readme
- Issues: https://github.com/NewBieBRhadex-offline-storage/issues
- npm.io page: https://npm.io/package/@hadx/offline-storage

## Dependencies (2)

- [dot-prop](https://npm.io/package/dot-prop.md) ^5.2.0
- [@types/node](https://npm.io/package/@types/node.md) ^13.7.7

## Recent versions

- 0.0.3 (latest) — 2020-03-02
- 0.0.2 — 2020-03-02
- 0.0.1 — 2020-03-02

## README

# Hadex Offline Storage

## Usage

```js
import AsyncStorage from '@react-native-community/async-storage';
import { LocalStorage } from 'node-localstorage';
import OfflineStorage from '@hadx/offline-storage';

/* React Native */
OfflineStorage.initialize({
    storage: AsyncStorage,
    name: 'root'
}).then(() => {
    console.log('Offline Storage initialized')
});

/* Node */
const localStorage = new LocalStorage('./storage');
OfflineStorage.initialize({
    storage: localStorage,
    name: 'root'
}).then(() => {
    console.log('Offline Storage initialized')
});


```

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