@anzerr/fs.watcher
TypeScript icon, indicating that this package has built-in type declarations

1.0.23 • Public • Published

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

Package Sidebar

Install

npm i @anzerr/fs.watcher

Weekly Downloads

8

Version

1.0.23

License

MIT

Unpacked Size

6.88 kB

Total Files

6

Last publish

Collaborators

  • anzerr