refill-watcher
v1.0.1
Published
Watcher for refill tasks
Downloads
18
Readme
Refill watcher
Zkflow watcher watches files for you and runs provided asynchronous function when this files changes. It prevents function to run more than once at a time and prevents building up run queue.
Shields
Installation
npm install --save refill-watcherAPI
require('refill-watcher').watch(task, isWatching, globs, logger);- task - asynchronous function, witch return promise;
- isWatching - true or false. When false task will be run only once and then it will exit.
- globs - globs that will be passed to gulp-watch
- logger - logger from refill-logger
