mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
7 lines
152 B
JavaScript
7 lines
152 B
JavaScript
const chokidar = require('chokidar')
|
|
|
|
// One-liner for current directory
|
|
chokidar.watch('.').on('all', (event, path) => {
|
|
console.log(event, path)
|
|
})
|