Skip to main content
Process.stderr - node__process.d.ts - Node documentation
property Process.stderr

Usage in Deno

```typescript import { type Process } from "node:node__process.d.ts"; ```
The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is a `Writable` stream. `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information.

Type

WriteStream & { fd: 2; }