underscore-cli icon indicating copy to clipboard operation
underscore-cli copied to clipboard

Piping to Standard Unix Commands Broken

Open AlexandreCassagne opened this issue 6 years ago • 0 comments

The command, $ echo '{"hello": "world"}' | underscore print | echo outputs

      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at WriteWrap.afterWrite [as oncomplete] (net.js:788:14)
Emitted 'error' event at:
    at onwriteError (_stream_writable.js:431:12)
    at onwrite (_stream_writable.js:456:5)
    at _destroy (internal/streams/destroy.js:40:7)
    at Socket.dummyDestroy [as _destroy] (internal/process/stdio.js:11:34)
    at Socket.destroy (internal/streams/destroy.js:32:8)
    at WriteWrap.afterWrite [as oncomplete] (net.js:790:10)```

AlexandreCassagne avatar Feb 12 '19 19:02 AlexandreCassagne