Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        



amaui logo

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
```