offline-cleanup
v0.0.2
Published
A simple JavaScript utility for cleaning up all DOM storage data. No dependencies.
Downloads
3
Readme
offlineCleanup
A simple JavaScript utility for cleaning up all DOM storage data. No dependencies.
Installation
You have three, easy choices for installing offlineCleanup:
- Directly get the file
- Install via Bower:
bower install offline-cleanup
- Install via NPM:
npm install offline-cleanup
And then include the script tag somewhere:
<script src="bower_components/offline-cleanup/offline-cleanup.js"></script>
Usage
Easy as that:
offlineCleanup(function ( err ) {
if ( err ) {
console.log( "oh boy, something went wrong" );
} else {
console.log( "OH LOOK my DOM Storage is now gone!!1!" );
}
});
Support
Storage types:
- indexedDB
- localStorage
- ~~WebSQL~~ (wished feature)
- ~~Cookies~~ (does anyone still use it as a storage?)
License
MIT