UNPKG

ctrlc-wrapper

Version:

Wrapper enabling to send CTRL+C signal to child process

10 lines (9 loc) 667 B
/// <reference types="node" /> import { SpawnOptionsWithoutStdio, ChildProcessWithoutNullStreams } from 'child_process'; interface WrapperChildProcessWithoutNullStreams extends ChildProcessWithoutNullStreams { sendCtrlC(): void; } declare function spawnWithWrapper(command: string, options?: SpawnOptionsWithoutStdio): WrapperChildProcessWithoutNullStreams; declare function spawnWithWrapper(command: string, args?: readonly string[], options?: SpawnOptionsWithoutStdio): WrapperChildProcessWithoutNullStreams; declare function sendCtrlC(child: ChildProcessWithoutNullStreams): void; export { spawnWithWrapper, sendCtrlC, WrapperChildProcessWithoutNullStreams };