watchexec alternatives and similar packages
Based on the "System tools" category.
Alternatively, view watchexec alternatives based on common mentions on social networks and blogs.
7.7 7.5 watchexec VS dotenv-linter⚡️Lightning-fast linter for .env files. Written in Rust 🦀
6.7 0.0 watchexec VS snatchA simple, fast and interruptable download accelerator, written in Rust
Do you think we are missing an alternative of watchexec or a related project?
Software development often involves running the same commands over and over. Boring!
watchexec is a simple, standalone tool that watches a path and runs a command whenever it detects modifications.
Example use cases:
- Automatically run unit tests
- Run linters/syntax checkers
- Simple invocation and use, does not require a cryptic command line involving
- Runs on OS X, Linux, and Windows
- Monitors current directory and all subdirectories for changes
- Coalesces multiple filesystem events into one, for editors that use swap/backup files during saving
- Uses process groups to keep hold of forking programs
- Provides the paths that changed in environment variables
- Does not require a language runtime, not tied to any particular language or ecosystem
- [And more!](./cli/#features)
npm run build when a change is detected:
$ watchexec -e js,css,html npm run build
python server.py when any Python file in the current directory (and all subdirectories) changes:
$ watchexec -r -e py -- python server.py
More usage examples: [in the CLI README](./cli/#usage-examples)!
- As pre-built binary package: https://watchexec.github.io/downloads/
- With your package manager for Arch, Homebrew, Nix, Scoop, Chocolatey…
- From source with Cargo:
cargo install watchexec-cli
All options in detail: [in the CLI README](./cli/#installation).
- [watchexec library](./lib/): to create more specialised watchexec-powered tools! such as:
- cargo watch: for Rust/Cargo projects.
- clearscreen: to clear the (terminal) screen on every platform.
- command group: to run commands in process groups.
- notify: to respond to file modifications (third-party).
- globset: to match globs (third-party).