Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxgfr/huge-async-storage
A wrapper of async-storage that allows you to store huge data on react-native
https://github.com/maxgfr/huge-async-storage
async-storage asyncstorage huge-data local-storage react-native react-native-async-storage storage typescript wrapper
Last synced: 2 days ago
JSON representation
A wrapper of async-storage that allows you to store huge data on react-native
- Host: GitHub
- URL: https://github.com/maxgfr/huge-async-storage
- Owner: maxgfr
- Created: 2022-12-03T15:40:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T19:13:06.000Z (14 days ago)
- Last Synced: 2024-10-26T15:12:38.210Z (13 days ago)
- Topics: async-storage, asyncstorage, huge-data, local-storage, react-native, react-native-async-storage, storage, typescript, wrapper
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/huge-async-storage
- Size: 1.52 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# huge-async-storage
A wrapper of AsyncStorage that allows you to store huge data on [react-native](https://reactnative.dev/).
## Installation
```sh
yarn add huge-async-storage
```## Usage
```tsx
import {storeAsync, getAsync, removeAsync} from "huge-async-storage";.....
await storeAsync(`value1`, {value: Array(1000000).fill(1)}); // store huge data
const value1 = await getAsync(`value1`); // to get the value by key
await removeAsync(`value1`); // to remove the value
```