VibeHunt
Back to browse

chokidar-cli

CLI to watch file system changes.

A fast, cross‑platform command‑line utility watches file‑system changes using the Chokidar library, which is widely employed in tools such as Gulp, Webpack and Karma. It accepts one or more glob patterns and streams events—add, change, unlink, and directory equivalents—to standard output, optionally filtering to just the relative path.

The tool can execute a user‑specified command for each event, with placeholders `{path}` and `{event}` replaced by the actual values. Options include debounce and throttle timers, symlink following, ignore patterns, initial execution, and polling mode for network or non‑standard file systems. Command arguments should be quoted for cross‑platform compatibility, especially in npm scripts.

It requires Node.js v20 or newer and can be installed locally for npm scripts or globally via npm. The CLI is stable and intended for developers who need simple, scriptable file‑watching without writing custom code.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps