1.1.0 • Published 4 years ago
@mageek/capacitor-storage-utils v1.1.0
@mageek/capacitor-storage-utils
Simplified API for Capacitor Storage.
Installation
$ npm i @mageek/capacitor-storage-utils
Usage
import { StorageUtils } from '@mageek/capacitor-storage-utils';
await StorageUtils.setJSON('test1', { foo: 'bar' });
const test1 = await StorageUtils.getJSON('test1');
await StorageUtils.set('test2', 123);
const test2 = await StorageUtils.get('test2');
await StorageUtils.unset('test1');
await StorageUtils.clear();