Skip to content
openpeepsPublic

About

⚡️ A fast, small, lightweight filesystem monitor. Yellin' for changes!

Topics

Resources

Stars

20 stars

Watchers

1 watching

Forks

Latest commit

 

History

69 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


A fast, small, lightweight filesystem monitor. Yellin' for changes!

API reference | Download (not yet)
Github Actions Github Actions

Key Features

  • Cross-platform (macOS, Linux, Windows)
  • Glob pattern filtering
  • Ignore hidden files
  • Zero external dependencies

Installing

nimble install watchout

Examples

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()

Pattern filtering

# Only watch .nim files
let w = newWatchout("/path/to/watch", some("*.nim"))

Multiple directories

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

Requirements

  • Nim >= 2.0.0

Contributions & Support

License

Watchout MIT license.
Copyright © 2023 OpenPeeps & Contributors — All rights reserved.

About

⚡️ A fast, small, lightweight filesystem monitor. Yellin' for changes!

Topics

Resources

Stars

20 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

Generated from openpeeps/pistachio