Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amaui-org/amaui-storage
Storage
https://github.com/amaui-org/amaui-storage
amaui browser front-end frontend javascript js library localstorage sessionstorage storage storages typescript utils web
Last synced: about 2 months ago
JSON representation
Storage
- Host: GitHub
- URL: https://github.com/amaui-org/amaui-storage
- Owner: amaui-org
- License: mit
- Created: 2022-02-07T23:27:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T22:27:34.000Z (9 months ago)
- Last Synced: 2024-09-07T20:48:23.526Z (4 months ago)
- Topics: amaui, browser, front-end, frontend, javascript, js, library, localstorage, sessionstorage, storage, storages, typescript, utils, web
- Language: TypeScript
- Homepage: https://docs.amaui.me/library/storage
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
amaui Storage
Storage
MIT license
Production ready
UMD 3.2kb gzipped
100% test cov
Browser
Very simple code
Modern code
Junior friendly
Typescript
Made with :yellow_heart:
## Getting started
### Add
```sh
yarn add @amaui/storage
```### Use
```javascript
import AmauiStorage from '@amaui/storage';const amauiStorage = new AmauiStorage();
const value = { a: 4 };
// Add
amauiStorage.add('a', value);// Get
amauiStorage.get('a');// { a: 4 }
// Remove
amauiStorage.remove('a');amauiStorage.get('a');
// null
```### Dev
Install
```sh
yarn
```Test
```sh
yarn test
```### Prod
Build
```sh
yarn build
```