Executes a command asynchronously and returns a Promise.
Command string or string array
A promise that resolves with trimmed stdout, or rejects with trimmed stderr
const result = await execAsync('ls -la');const files = await execAsync(['find', '.', '-name', '*.ts']); Copy
const result = await execAsync('ls -la');const files = await execAsync(['find', '.', '-name', '*.ts']);
Executes a command asynchronously and returns a Promise.