offline-cleanup

0.0.2 • Public • Published

offlineCleanup Build Status

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

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i offline-cleanup

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • gustavohenke