1.0.0 • Published 6 years ago

local-storage-size v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

local-storage-size

Calculates the size in bytes of all the items stored currently in local storage.

Installation

npm install local-storage-size --save

Usage

import localStorageSize from 'local-storage-size';
const totalSizeInBytes = localStorageSize.getSize();
console.log(totalSizeInBytes); // Approximately 19 KB currently stored in local storage.