ape-watching
ape framework module for watching files.
Usage
Watch files.
#!/usr/bin/env
'use strict'
const apeWatching = require('ape-watching')
const watchers = apeWatching.watchFiles([
'src/javascripts/**/*.js',
'assets/javascripts/**/*.js'
], (ev, filename) => {
/* ... */
})
setTimeout(() => {
watchers.forEach((watcher) => {
watcher.close() // Stop watching
})
}, 1000)
License
This software is released under the MIT License.