No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
getIndexedDbSize.js

README.md

getIndexedDbSize

Description

This Javascript function is used to iterate over all object stores for a given database name, and for each store it will list the number of bytes. It makes use of the proposed ECMAScript 6 Promise object to manage the asynchronous calls to IndexedDB.

The function has been wrapped in a closure so that it can easily be used as a Snippet in Google Chrome without worrying about leaking the code's variables into the global namespace.

Notes

The current version of this function makes use of console.table() to display the results. As such it only really works in Google Chrome.