UNPKG

exec-root

Version:

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

7 lines (6 loc) 282 B
declare module 'exec-root' { function exec (command: string, opts: any, callback?: (error: Error, stdout: string, stderr: string) => void): any namespace exec { function __promisify__(command: string, opts: any): Promise<{ stdout: string, stderr: string }>; } }