🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

offline-cleanup

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

offline-cleanup

A simple JavaScript utility for cleaning up all DOM storage data. No dependencies.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 15 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts