fgnass

fgnass/filewatcher

Wrapper around fs.watch that falls back to fs.watchFile

JavaScript
54
8
No license

filewatcher is a Node.js module that provides a simple wrapper around the built-in `fs.watch` API, addressing common issues like inconsistent file name reporting and double-firing events. It automatically falls back to `fs.watchFile` polling when file handle limits are reached, ensuring reliable file watching across different operating systems and text editors. This module is ideal for developers building tools like development servers or file synchronization utilities that need robust, cross-platform file change detection.

Total donated
Undistributed
Share with your subscribers: