您当前的位置: 首页 >  ar

JS:chokidar监听文件夹内容的变化

彭世瑜 发布时间:2020-12-08 12:10:23 ,浏览量:1

项目地址: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);
});

关注
打赏
1688896170
查看更多评论

彭世瑜

暂无认证

  • 1浏览

    0关注

    2771博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.1548s