pino-arborsculpture
pino-arborsculpture copied to clipboard
Watch file instead of polling
What about to use file watcher chokidar instead of poll interval?
That would significantly increase the dependency tree. In fact, at this point, the dependency tree could be zero with a PR to remove fast-json-parse
.
The readme for that chokidar
module says that it will use a native extension for macOS, but continue to use fs.watchFile
on other platforms. I'm a hard "no" on adding a native extension. I could probably be convinced to add a watcher option if it is based solely on the core fs.watch
API.