@jawis/stdio-filter
Version:
Filter the stdio from console applications.
18 lines (17 loc) • 629 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { MakeIncludeLineDeps, MakeMapLineDeps } from "./internal";
/**
*
*/
export declare const makeStdioFilter: (deps: {
ignoreLiteralLines?: string[] | undefined;
includeLine?: ((line: string) => boolean) | undefined;
includeJson?: ((obj: any) => boolean) | undefined;
} & MakeMapLineDeps & {
streamOutput: (str: string) => void;
onLineShown: (str: string) => void;
mapLineBeforeOutput?: ((line: string) => string) | undefined;
timeout: number;
emitDotForIgnoredLines?: boolean | undefined;
}) => (data: string | Buffer) => void;