Yet another library for watching FS trees. Includes a JSON-on-stdout command-line tool and {filePreexisted,allPreexistingFilesReported} events.
npm install watch-tree
yarn add watch-tree
pnpm add watch-tree
bun add watch-tree