Skip to content

Instantly share code, notes, and snippets.

@sscotth
Created January 24, 2025 16:12
Show Gist options
  • Save sscotth/fa78c07c143b7a8bbc45e3237ee09642 to your computer and use it in GitHub Desktop.
Save sscotth/fa78c07c143b7a8bbc45e3237ee09642 to your computer and use it in GitHub Desktop.
LocalStorage size (bytes)
new Blob(Object.entries(localStorage).flat()).size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment