winwatch
v2.0.0
Published
> This module is only for Windows users
Downloads
2
Readme
node-winwatch
This module is only for Windows users
Why not use fs.watch or chokidar
The fs.watch
api is unstable. Chokidar also has a few bugs.
Installation
via NPM
npm i winwatch
via Yarn
yarn add winwatch
Usage
var winwatch = require("winwatch").default;
var w = new winwatch("C:/Users/Admin/Documents/...", (path, event, isDir) => {
console.log(`${event} ${isDir ? "Folder" : "File"} ${path}`);
});
w.start();