fs-watch

0.0.1 • Public • Published

fs-watch

修复mac中的fs.watch的限制

原理

在watch不能使用的地方,用watchFile来替换

用法

var watch = require('../');
 
watch('./a.txt', function () {
  console.log('file is changed');
});
 

Readme

Keywords

none

Package Sidebar

Install

npm i fs-watch

Weekly Downloads

5

Version

0.0.1

License

none

Last publish

Collaborators

  • jifeng.zjd