mirror of
https://github.com/danbulant/koa-plugins
synced 2026-05-19 12:18:46 +00:00
| .. | ||
| index.js | ||
| package.json | ||
| README.md | ||
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