A drop-in replacement for lint-staged optimized for speed. Version 1.0.2 bundles zero dependencies as a single file (~25KB vs ~300KB), starts up in ~15ms (vs ~180ms), runs tasks concurrently by default, and uses a lightweight index stash strategy. Supports all lint-staged config formats including package.json, JS/JSON/YAML config files, and function-based config. Extends the original with a lean mode that avoids unnecessary git subprocesses. Built primarily with AI assistance, the author advises against using in large projects.
npm install fast-stagedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows install, config in package.json, husky integration, and programmatic usage.
Stick with lint-staged for production large projects.
Use lean mode only if you understand the tradeoffs.
Use dynamic import() if necessary in CJS projects.
Use 'lint-staged' key for compatibility.
Use dynamic import: const { fastStaged } = await import('fast-staged')Add a 'lint-staged' key to package.json or create a .lintstagedrc file.
Check config file syntax and ensure it's a valid JS/JSON/YAML.
No dependency data recorded yet.