1.0.8 • Published 7 years ago
shell-cmd v1.0.8
shell-cmd
just run a darn command
as a promise
import exec from 'shell-cmd'
const main = async () => {
const {stdout, stderr, code} = await exec('ls')
}
main()
with output callbacks
import exec from 'shell-cmd'
exec('tail -f access.log', { onStdout: console.log, onStderr: console.error })