Skip to content

amaui-org/amaui-storage

Repository files navigation



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 💛


Getting started

Add

yarn add @amaui/storage

Use

  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

yarn

Test

yarn test

Prod

Build

yarn build