$ gnpm install error-inject
inject an error listener into a stream
npm install error-inject
var inject = require('error-inject');
function error(err) {
console.error(err);
}
var rs = fs.createReadStream('index.js');
inject(rs, err);
MIT
Copyright 2013 - present © cnpmjs.org | Home |