npm.io
0.1.4 • Published 1 year ago

@types/intercept-stdout

Licence
MIT
Version
0.1.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/// <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 0642 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Paulo Castro.