cachebust is a command-line tool that appends a query string to asset URLs (CSS/JS) in HTML files to force cache invalidation. The current stable version is 2.4.1, but the package has seen no updates since 2014, with only an initial v1.0.0 release. It relies on Grunt-based development and lacks modern ESM support, making it largely incompatible with contemporary build tooling. Compared to alternatives like gulp-rev or webpack's content hashing, cachebust is a minimal, single-purpose utility with no active maintenance or community support.
npm install cachebustNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows the basic CLI usage to add cachebust query strings to assets in an HTML file.
Switch to an actively maintained tool like gulp-rev or webpack's output.filename with content hashing.
Use child_process.spawn if needed, or choose a library with JS API.
Avoid importing directly; use CLI invocation only.
Consider alternative cachebusting solutions that integrate with webpack, Vite, etc.
Run 'npm install cachebust' which installs its dependencies automatically.
Run 'npm install -g cachebust' to install globally.
Use the package via command line: 'npx cachebust index.html'.