1.3.1 • Published 7 years ago

prosh v1.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

prosh

Build status Git tag NPM version Code style

A promise shell.

Installation

$ npm install prosh

Usage

import prosh from 'prosh'
import co from 'co'

co(function * () {
  yield prosh(`
    echo "hello world"
    echo "hello world"
    `)
})

API

prosh(command)

  • command - command string the same way you would write it in a shell

Returns: a promise the resolves {code, output, time}, where code is exit code, output is stdout and stderr and time is run time

License

MIT

1.3.1

7 years ago

1.3.0

7 years ago

1.2.6

7 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago