1.0.0 • Published 10 months ago

@onesy/storage v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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