error-inject
inject an error listener into a stream
Last updated 11 years ago by dead_horse .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install error-inject 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (11 years ago)

1 Versions

  • 1.0.0                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |