Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    error-injectpublic

    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

    install

    npm i error-inject

    Downloadslast 7 days

    118,852

    version

    1.0.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar