2.0.0 • Published 6 years ago

winwatch v2.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

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();