UNPKG

sudo-prompt

Version:

Run a command using sudo, prompting the user with an OS dialog if necessary

5 lines (4 loc) 318 B
export function exec(cmd: string, options?: ((error?: Error, stdout?: string | Buffer, stderr?: string | Buffer) => void) | { name?: string, icns?: string, env?: { [key: string]: string } }, callback?: (error?: Error, stdout?: string | Buffer, stderr?: string | Buffer) => void): void;