facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.64k stars 992 forks source link

using it minimally inside a npm package? #1160

Open archywillhe opened 1 year ago

archywillhe commented 1 year ago

I got it running on my mac, but looks like it is almost like a crontab daemon?

I'm wondering if I can use watchman like how chokidar (https://github.com/paulmillr/chokidar) is used.

e.g. packing it into a npm package like NextJS, and calling it via a command (without users needing to brew install it or cp the binary to /usr/local/bin)?

is that possible?