UNPKG

outers

Version:

outers - a all in one package for your day to day use

11 lines (10 loc) 378 B
/** * Executes a command and returns the output and error. * It is only for short-lived processes. long-lived processes are not recommended for security reasons. * @param command - The command to execute. * @returns An object containing the output and error. */ export default function executeCommand(command: string): Promise<{ output: string; error: unknown; }>;