I am looking to watch a folder using the nodejs Chokidar I only want to monitor for additions, deletes of xml files. I am new to Chokidar and can\'t figure it out. I tried s
chokidar accepts a glob pattern as first argument. You can use it match your XML files.
chokidar
chokidar.watch("some/directory/**/*.xml", config)