spawnd
Version:
Spawn a dependent child process.
10 lines (7 loc) • 402 B
TypeScript
import { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio } from 'node:child_process';
interface SpawndChildProcess extends ChildProcessWithoutNullStreams {
destroy: () => Promise<void>;
}
type SpawndOptions = SpawnOptionsWithoutStdio;
declare const spawnd: (command: string, options?: SpawndOptions) => SpawndChildProcess;
export { type SpawndChildProcess, type SpawndOptions, spawnd };