local-storage-size

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i local-storage-size

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bsubedi26