error-inject
v1.0.0
Published
inject an error listener into a stream
Downloads
1,337,638
Readme
error-inject
inject an error listener into a stream
Install
npm install error-inject
Usage
var inject = require('error-inject');
function error(err) {
console.error(err);
}
var rs = fs.createReadStream('index.js');
inject(rs, err);
License
MIT