shell-cmd
v1.0.8
Published
just run a darn command
Downloads
12
Readme
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 })