Reset storage. E.g. localStorage, indexedDB.
reset-storage
based on mizchi/items/54f4b0f30990d48a135.
$ npm install --save reset-storage
var resetStorage = require('reset-storage');
// or
<script src="build/reset-storage.js"></script>
resetStorage('want-to-delete');
//=> Reset localStorage && Reset 'want-to-delete' indexedDB
resetStorage.localStorage();
//=> Reset localStorage
resetStorage.indexedDB('want-to-delete');
//=> Reset 'want-to-delete' indexedDB
Reset a localStorage & an indexedDB.
Required
Type: string
Database name on indexedDB.
Same as resetStorage()
Reset a localStorage.
Reset an indexedDB.
Required
Type: string
Database name on indexedDB.
MIT © sanemat