Recursive Node.js fs.watch on Linux

https://nodejs.org/api/fs.html#fs_caveats claims that the fs.watch(filename[, options][, listener])recursive option is available only for OS X and Windows.

So how can this be implemented on Linux?

+4
source share
1 answer

Someone already implemented it as an npm module: node-watch

The author claims that it is much faster and more efficient in terms of memory.

Hope this helps if you haven't found a solution yet.

+1
source

Source: https://habr.com/ru/post/1673579/


All Articles