Name Last Update
..
README.md Loading commit data...
index.js Loading commit data...
package.json Loading commit data...

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