Registry / utility / listen

listen

JSON →
library3.10.0rbrubygemsunverified

The Listen gem listens to file modifications and notifies you about the changes.

gem install listen
INSTALL
IMPORT
SIG · LISTEN
L
listen
utilityrubyv3.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Listen
require 'listen'

Watch a directory for file changes and print modified files.

require 'listen' listener = Listen.to('/path/to/dir') do |modified, added, removed| puts "Modified: #{modified}" end listener.start sleep
Debug
Known issues
gotchaListen may require the 'wdm' gem on Windows for optimal performance.
fix
Add gem 'wdm' to your Gemfile on Windows platforms.
affects: >= 3.0.0
Upgrade
Version history
3.10.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
listen — gem install listen · libregistry