
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
storage-inspector-js
Advanced tools
storage-inspector-js library helps to clear site data & provides storage usage & quota.
# If you use npm:
npm i storage-inspector-js
# If you use yarn:
yarn add storage-inspector-js
ES6 Usage
import { BROWSER, getStorageUsageAndQuota, clearSiteData } from 'storage-inspector-js';
Commonjs Usage
var { BROWSER, getStorageUsageAndQuota, clearSiteData } = require('storage-inspector-js');
import React, {useEffect} from 'react';
import { BROWSER, getStorageUsageAndQuota, clearSiteData, STORAGE_INFO } from 'storage-inspector-js';
const App = () => {
const [storageInfo, setStorageInfo] = useState<STORAGE_INFO>()
useEffect(()=>{
(async()=>{
const res= await getStorageUsageAndQuota();
setStorageInfo(res)
})()
},[])
const clearStorage = async () => {
await clearSiteData({ reload: true})
// to delete specific IndexDB
await clearSiteData({ indexDBName: "DBName", reload: true})
}
return (
<div>
<h3>BROWSER: {BROWSER}</h3>
<p>Storage Info: {storageInfo.baked.usage/storageInfo.baked.quota}</p>
<button onClick={clearStorage}>Clear Site Data</button>
</div>
);
};
export default App;
| name | type | params | default | description |
|---|---|---|---|---|
| BROWSER | string | it will provide the browser name i.e. Brave, Chrome, Firefox, Safari, Internet Explorer Edge, Samsung Browser, UC Browser, Opera, Unknown. | ||
| getStorageUsageAndQuota | function | get storage usage & quota { raw: { usage: 180670, quota: 24090080 }, baked: { usage: "230KiB", quota: "980MiB" } } | ||
| clearSiteData | function | indexDBName required for firefox, reload required | clears site data which includes all browser storage. Set reload params to true, to reload the site once storage is clear. |
FAQs
clear site data, get storage usage & quota.
We found that storage-inspector-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.