Cache-breaker is a utility for breaking browser caches by appending timestamps or unique strings to CSS/JS references in HTML strings. Current version 0.0.4 is in early development; the module does not interact with the file system, so users must handle file I/O themselves. It offers three modes: query string, filename insertion, and overwrite. Release cadence is unknown. Differentiators include lightweight, no-frills cache busting without a build system.
npm install cache-breakerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: breaking cache by appending a timestamp query string to specified CSS files in an HTML string.
Use fs.readFileSync/writeFileSync (or async equivalents) to process files.
Provide exact filenames or use glob patterns manually before calling the function.
Run: npm install cache-breaker
Use const cacheBreaker = require('cache-breaker');No dependency data recorded yet.