Not TestedTesting not done, may not work properly
Files & File System

Storage Manager

Estimate disk space quota usage and request persistent storage quota.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

const { quota, usage } = await navigator.storage.estimate();
console.log(`Used ${usage} of ${quota} bytes`);

About the Storage Manager Web API

StorageManager API provides methods for managing storage persistence and estimating available quota.

Specification:W3C & WHATWG Web API Standard
Sponsored Content