npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

browser-cache-clearer

v1.0.7

Published

CLI tool to clear browser cache for Chrome and Edge

Readme

browser-cache-clearer

A Node.js utility designed for clearing local file system cache directories of Chrome and Edge browsers on macOS and Windows. This tool facilitates the removal of cached data, potentially freeing up disk space or resetting browser states for development and testing purposes.

Installation

To integrate browser-cache-clearer into your Node.js project, execute the following command using npm:

npm install browser-cache-clearer

Usage

The browser-cache-clearer package exposes a single asynchronous function, clear, for initiating the cache removal process.

import { clear } from 'browser-cache-clearer';

console.log('Initiating browser cache cleanup...');

try { await clear();

console.log('Successfully cleared cache for Chrome and Edge.'); } catch (error) { console.error('Failed to clear browser cache:', error.message); }

Important Considerations

Limitations:

1)Browser Environments: This package is incompatible with in-browser JavaScript execution (e.g., within React applications) due to its reliance on Node.js-specific modules (fs, path, os).

2)Linux Support: Currently, Linux operating systems are not supported by this utility.

3)Electron Applications: Functionality within Electron applications is contingent upon proper Node.js integration within the Electron environment.

Supported Environments:

1)Node.js Command-Line Interface (CLI) scripts

2)Backend Node.js services

3)Desktop applications built with Node.js and system access capabilities

Targeted Cache Directories

browser-cache-clearer identifies and attempts to delete the following cache-related directories for the default user profile of both Chrome and Edge browsers:

1)Cache

2)GPUCache

3)Code Cache

4)Service Worker (or CacheStorage)

5)Application Cache

Default Profile Locations:

macOS:

~/Library/Caches/Google/Chrome/Default/...

~/Library/Caches/Microsoft Edge/Default/...

Windows:

C:\Users\YOUR_NAME\AppData\Local\Google\Chrome\User Data\Default...

C:\Users\YOUR_NAME\AppData\Local\Microsoft\Edge\User Data\Default...