1.0.5 • Published 4 years ago

@annoai/shelljs-promise v1.0.5

Weekly downloads
54
License
ISC
Repository
github
Last release
4 years ago

shelljs-promise

A high-level function for shelljs using promises. Optional support for escaping shell commands.

Unescaped shell command

const { shellExec } = require('@annoai/shelljs-promise')

shellExec('ls -al')
  .then((stdout) => {
    console.log(stdout)
  })
  .catch((stderr) => {
    console.log(stderr)
  })

Escaped shell command (supports array of strings only)

const { shellExec } = require('@annoai/shelljs-promise')

shellExec(['ls', '-al'])
  .then((stdout) => {
    console.log(stdout)
  })
  .catch((stderr) => {
    console.log(stderr)
  })
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago