0.1.0 • Published 10 years ago

file-watch v0.1.0

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

File Watch

Super simple file watcher. Unlike other watchers that listen on directories and globs, this file only listens to specific files. This is specifically made for normalize-builder where all files are known and constantly updated.

API

var Watcher = require('file-watch')

var watcher = new Watcher()

watcher.watch('custom event', [
  'file1.txt',
  'file2.txt',
])

watcher.on('custom event', function () {
  console.log('custom event!')
})

Now when file1.txt or file2.txt and changed, custom event will be emitted.

0.1.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago