exec-sh
Version:
Execute shell command forwarding all stdio.
13 lines (11 loc) • 336 B
text/typescript
import execSh from '../'
(async () => {
console.log(await execSh.promise('pwd'))
console.log(await execSh.promise('pwd', true))
execSh('pwd')
execSh('pwd', true)
execSh('pwd', {}, () => {})
execSh('pwd', true, ( error: Error | null, stdout: string, stderr: string) => {
console.log({ error, stdout, stderr })
})
})()