Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gustavohenke/offline-cleanup

A simple JavaScript utility for cleaning up all DOM storage data.
https://github.com/gustavohenke/offline-cleanup

Last synced: 17 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# offlineCleanup [![Build Status](https://img.shields.io/travis/gustavohenke/offline-cleanup.svg?style=flat-square)](https://travis-ci.org/gustavohenke/offline-cleanup)
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](offline-cleanup.js)
* Install via Bower: `bower install offline-cleanup`
* Install via NPM: `npm install offline-cleanup`

And then include the script tag somewhere:

```html

```

## Usage
Easy as that:

```javascript
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