fs.watch('./', { encoding: 'utf8' }, (eventType, filename) => {
if (filename) {
console.log(filename);
}
});
fs.watch('./', { encoding: 'utf8', recursive: true }, (eventType, filename) => {
if (filename) {
console.log(filename);
}
});