eruda-storage
v0.1.1
Published
Editable storage panel plugin for Eruda 3.x, with Local Storage, Session Storage, Cookie, and IndexedDB support.
Downloads
46
Maintainers
Readme
eruda-storage
Editable storage panel plugin for Eruda 3.x.
It adds a Storage tab with:
- Local Storage
- Session Storage
- Cookie
- IndexedDB database / object store browsing
- Add, edit, delete, and clear actions
- Object preview tree with expandable nested values
Install
npm install eruda eruda-storageUsage
import eruda from "eruda";
import erudaStorage from "eruda-storage";
eruda.init();
eruda.add(erudaStorage(eruda));Notes
- IndexedDB database listing uses
indexedDB.databases(), so very old browsers may only show a not-supported message. - The plugin patches
Storage.prototype.setItem,removeItem, andclearto refresh the panel when storage changes on the current page.
License
MIT
