Captures `stdout` and `stderr` events.
npm install stdio-captureCaptures stdout and stderr events.
_Does not capture console.log or console.error called within event handler._
``javascript
const capture = require('stdio-capture')
const capture = require('.')
capture.on('stdout', text => {
console.log(I just captured "${text}" from stdout!)
console.log('But this text will not be captured.')
})
capture.on('stderr', text => {
console.log(I just captured "${text}" from stderr!)
console.log('But this text will not be captured.')
})
capture.enable()
console.log('This text')
console.error('Also this text')
capture.disable()
console.log('But not this text')
console.error('Or this text')
``