You can clone with
According to the api fs.watch isn't compatible with every system. It should throw when it isn't supported, so devs know.
doc: fs: clarfify fs.watch() documentation
fs.watch() is implemented on all supported platforms but, depending on the
object being watched, doesn't always work reliably (or at all).
Thanks, addressed in 58a5bc1.
Does fs.watch reliably work on Windows? Heard it has some issues.
It has some issues indeed:
So can we safely say, that all other major platforms (Linux and OS X) are supported without issues? If so it would be best for devs to use fs.watch as long as process.platform != 'win32' and switch to the lame, polling fs.fileWatcher if needed.
process.platform != 'win32'