UNPKG

311 BTypeScriptView Raw
1/**
2 * Wraps up running a command into a single promise,
3 * returning the stdout as a string if the command succeeds
4 * and throwing if it does not.
5 *
6 * @param cmd the command as a string to pass in
7 */
8export default function execPromise(cmd: string, args?: (string | undefined | false)[]): Promise<string>;