项目地址:https://github.com/paulmillr/chokidar
安装
npm install chokidar
监控当前运行目录
const chokidar = require('chokidar');
// One-liner for current directory
chokidar.watch('.').on('all', (event, path) => {
console.log(event, path);
});
项目地址:https://github.com/paulmillr/chokidar
安装
npm install chokidar
监控当前运行目录
const chokidar = require('chokidar');
// One-liner for current directory
chokidar.watch('.').on('all', (event, path) => {
console.log(event, path);
});
微信扫码登录