Files
linux-odyssey/packages/cli/watch.js
T
wancat 41a12c9aa8 feat: collect 2 level files info when ls
* change cli dir to /usr/local/lib/cli
* refactor cli to multiple files
* add handleCommand and listeners pattern
2023-08-21 20:40:05 +08:00

7 lines
152 B
JavaScript

const chokidar = require('chokidar')
// One-liner for current directory
chokidar.watch('.').on('all', (event, path) => {
console.log(event, path)
})