1.0.0 • Published 7 years ago
local-storage-size v1.0.0
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.
1.0.0
7 years ago