Shard Detail

fswatch v0.1.0

No Description

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development


fswatch:
  github: bcardiff/crystal-fswatch

Readme

crystal-fswatch

fswatch bindings for Crystal

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      fswatch:
        github: bcardiff/crystal-fswatch
    
  2. Run shards install

Usage

require "fswatch"

FSWatch.watch "." do |event|
  pp! event
end

sleep 10 # keep main fiber busy to prevent exiting

Contributing

  1. Fork it (https://github.com/bcardiff/crystal-fswatch/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