shell-cmd

1.0.8 • Public • Published

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 })

Readme

Keywords

none

Package Sidebar

Install

npm i shell-cmd

Weekly Downloads

3

Version

1.0.8

License

ISC

Last publish

Collaborators

  • amonks