
A fast, small, lightweight filesystem monitor. Yellin' for changes!
API reference | Download (not yet)
- Cross-platform (macOS, Linux, Windows)
- Glob pattern filtering
- Ignore hidden files
- Zero external dependencies
nimble install watchout
import watchout
let w = newWatchout("/path/to/watch")
w.onChange = proc(file: File) =
echo "Changed: ", file.getName()
w.onDelete = proc(file: File) =
echo "Deleted: ", file.getName()
w.start()# Only watch .nim files
let w = newWatchout("/path/to/watch", some("*.nim"))let w = newWatchout(@["/path/a", "/path/b"], some("*.txt"))Configure hidden file handling
let w = newWatchout("/path/to/watch")
w.ignoreHidden = false # Include hidden files- Nim >= 2.0.0
- Found a bug? Create a new Issue
- Wanna help? Fork it!
Watchout MIT license.
Copyright © 2023 OpenPeeps & Contributors — All rights reserved.