# @types/intercept-stdout

> TypeScript definitions for intercept-stdout

Latest version **0.1.4** (published 2025-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/intercept-stdout
pnpm add @types/intercept-stdout
yarn add @types/intercept-stdout
bun add @types/intercept-stdout
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2025-08-19 |
| First published | 2019-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/intercept-stdout
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intercept-stdout
- npm.io page: https://npm.io/package/@types/intercept-stdout

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.1.4 (latest) — 2025-08-19
- 0.1.3 (ts4.5) — 2023-11-22
- 0.1.0 (ts2.8) — 2019-09-24
- 0.1.2 — 2023-11-07
- 0.1.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/intercept-stdout`

# Summary
This package contains type definitions for intercept-stdout (https://github.com/sfarthin/intercept-stdout).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intercept-stdout.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intercept-stdout/index.d.ts)
````ts
/// <reference types="node" />

type Chunk = Parameters<NodeJS.Process["stdout"]["write"]>[0];
type hookFunction = (chunk: Chunk) => Chunk;
type unhookFunction = () => void;

declare function intercept(
    stdoutIntercept: hookFunction,
    stderrIntercept?: hookFunction,
): unhookFunction;

export = intercept;

````

### Additional Details
 * Last updated: Tue, 19 Aug 2025 06:41:42 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Paulo Castro](https://github.com/pdcastro).

---
_Source: https://npm.io/package/@types/intercept-stdout · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
