1.0.1 • Published 8 years ago

yaw v1.0.1

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

NPM Version Build Status

(Y)et (A)nother (W)atch utility. This time event based.

Installation

npm install yaw

Usage

const watcherFactory = require('yaw');
const watcher = watcherFactory();

watcher.watch('some/file/or/directory')
  .on('error', (err) => {
    // Handle error
  })
  .on('create', (filepath, stats) => {
    // Handle new file or directory
  })
  .on('change', (filepath, stats) => {
    // Handle update to file
  })
  .on('delete', (filepath) => {
    // Handle removal of file or directory
  });
1.0.1

8 years ago

1.0.0

8 years ago

0.1.1

11 years ago

0.1.0

11 years ago