inotify
Version, currently 1.0.16 versions
github.com/petoem/inotify.cr
Inotify bindings for Crystal language
44 stars
2 dependents
License: MIT
Nothing has been indexed for 1.0.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
inotify:
github: petoem/inotify.cr
version: ~> 1.0.1Then run:
shards installshard.yml
No shard.yml has been indexed for 1.0.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# inotify
Inotify bindings for [Crystal language](https://github.com/crystal-lang/crystal).
[](https://github.com/petoem/inotify.cr/releases)
[](https://github.com/petoem/inotify.cr/actions/workflows/crystal.yml)
[](https://github.com/petoem/inotify.cr/blob/master/LICENSE)
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
inotify:
github: petoem/inotify.cr
version: 1.2.0
```
## Usage
```crystal
require "inotify"
# To watch a file or directory ...
watcher = Inotify.watch "/path/to/file.txt" do |event|
# your awesome logic
end
# ... for 10 seconds.
sleep 10.seconds
watcher.close
```
_Note: You have to run something in the main fiber or else your program will exit._
More documentation can be found [here](https://petoem.github.io/inotify.cr/).
## Development
To enable logging to `STDOUT` using environment variables, follow the instructions in the [api docs](https://crystal-lang.org/api/0.34.0/Log.html#configure-logging-from-environment-variables). Use log source `inotify` and severity level `DEBUG`.
## Contributing
1. [Fork it!](https://github.com/petoem/inotify.cr/fork)
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [petoem](https://github.com/petoem) Michael Petö - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.1- Tagged
- Nov 19, 2025
- Commit
041265946373- Indexed
- not yet
Dependents
Repository
github.com/petoem/inotify.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 12, 2026
- Versions
- 6