Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gustavohenke/offline-cleanup
- Owner: gustavohenke
- License: mit
- Created: 2015-01-15T03:06:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T18:27:02.000Z (over 9 years ago)
- Last Synced: 2024-10-06T16:41:01.034Z (about 1 month ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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