2.0.4 • Published 4 years ago
awatch v2.0.4
awatch
Async file watcher
Installation
$ npm install awatch --save
Usage
'use strict'
const awatch = require('awatch')
const co = require('co')
co(function * () {
let close = yield awatch('src/**/*.jsx', (event, filename) => {
/* ... */
})
/* ... */
process.on('beforeExit', () => {
close()
})
}).catch((err) => console.error(err))
License
This software is released under the MIT License.