/storage

Storage

Primary LanguageTypeScriptMIT LicenseMIT



onesy logo

onesy 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 @onesy/storage

Use

  import OnesyStorage from '@onesy/storage';

  const onesyStorage = new OnesyStorage();

  const value = { a: 4 };

  // Add
  onesyStorage.add('a', value);

  // Get
  onesyStorage.get('a');

  // { a: 4 }

  // Remove
  onesyStorage.remove('a');

  onesyStorage.get('a');

  // null

Dev

Install

yarn

Test

yarn test

Prod

Build

yarn build