UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

28 lines (18 loc) 295 B
error-inject ============ inject an error listener into a stream ## Install ``` npm install error-inject ``` ## Usage ```js var inject = require('error-inject'); function error(err) { console.error(err); } var rs = fs.createReadStream('index.js'); inject(rs, err); ``` ## License MIT