UNPKG

haxec

Version:

Wrap a Node.js spawn() or exec() with before/after handlers

8 lines (7 loc) 230 B
export interface Options { beforeExit?: () => void | Promise<void>; env?: { [key: string]: string | undefined; }; } export declare function run(wrapModule: string, cmd: Array<string>, options?: Options): void;