Storage
Very simple code Modern code Junior friendly Typescript Made with 💛
yarn add @onesy/storage
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
Install
yarn
Test
yarn test
Build
yarn build