prosh
A promise shell.
Last updated a month ago by joshrtay .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install prosh 
SYNC missed versions from official npm registry.

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

Maintainers (2)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 98
Dependencies (4)
Dev Dependencies (5)

Copyright 2014 - 2016 © taobao.org |