1.0.1 • Published 4 years ago
tiny-tiny-storage v1.0.1
What is the purpose?
It's a very tiny library for local/session storage operations. There's no dependency. Written in TypeScript
Usage
Install package
# NPM
npm install tiny-tiny-storage
# Yarn
yarn add tiny-tiny-storageset item
import storage from 'tiny-tiny-storage';
storage.set('key', value);get item
import storage from 'tiny-tiny-storage';
storage.get('key');remove item
import storage from 'tiny-tiny-storage';
storage.remove('key');Clear
It clears all storage item.
import storage from 'tiny-tiny-storage';
storage.clear();clear without
import storage from 'tiny-tiny-storage';
storage.clearWithout(['key']);session storage
import storage from 'tiny-tiny-storage';
storage.session.set('key', value);
storage.session.get('key');Licence
MIT
1.0.1
4 years ago