Crypto CLI
    Preparing search index...

    Function exitOnClosedPipe

    • End quietly when the reader of stream goes away (crypto-cli ... | head): an EPIPE exits with EXIT.OK, as Unix tools stop writing to a closed pipe. Any other stream error is re-thrown.

      Parameters

      • stream: EventEmitter
      • exit: (code: number) => void

      Returns EventEmitter<any>