+
Skip to content

anzerr/fs.watcher

Repository files navigation

Intro

GitHub Actions status | linter GitHub Actions status | publish GitHub Actions status | test

Watch a directory and emit when a change/add/remove has happened to a file or folder.

Install

npm install --save git+https://github.com/anzerr/fs.watcher.git
npm install --save @anzerr/fs.watcher

Example

const Watcher = require('fs.watcher');

let watch = new Watcher(process.cwd()).on('change', (r) => {
	console.log('change', r);
});

About

event based directory watcher

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载