-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
Description
it should warn if the hook function does not return anything (can cause weird bugs)
const hook = require('node-hook')
function instrument(source, filename) {
console.log('instrumenting %s for data-cover', filename)
// returns undefined
}
hook.hook('.js', instrument)
process.on('exit', function () {
console.log('data-cover is done')
hook.unhook('.js')
})