Options
All
  • Public
  • Public/Protected
  • All
Menu

A Node stream like /dev/null.

Writing goes to a black hole, reading returns EOF.

Hierarchy

  • Duplex
    • DevNullStream

Index

Constructors

Methods

Constructors

  • new DevNullStream(options?: { autoDestroy?: boolean }): DevNullStream

Methods

  • _read(size: number): void
  • _write(chunk: any, encoding: string, callback: ((err?: Error) => void)): void