exec-sh
Version:
Execute shell command forwarding all stdio.
21 lines (17 loc) • 421 B
TypeScript
import { ChildProcess } from 'child_process';
declare function execSh(
command: string | string[],
options?: object | true,
callback?: (
error: Error | null,
stdout: string,
stderr: string
) => void
): ChildProcess;
declare namespace execSh {
function promise(
command: string | string[],
options?: object | true
): Promise<{ stdout: string, stderr: string }>;
}
export default execSh;