0.1.2 • Published 3 years ago

quick-spawn v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Quick-Spawn

中文
ChangeLog: English | 中文

API

You can use this lib just like below:

  import {quickSpawn,quickSpawnPromise} in 'quick-spawn';
  //  or const {quickSpawn,quickSpawnPromise} =require('quick-spawn');

quickSpawn('command line',callback) quickSpawn('command line',params,callback) quickSpawn('command line',opts,callback) quickSpawn('command line',params, opts, callback)

quickSpawnPromise('command line',params(optional), opts(optional)) .then((err,stdout,stderr)=>{ if(err) throw err; console.log(stdout) })

### Command Line
such a string that be executable in terminal or cmd window

### params (optional)
Array,which are transfer to program that declared in command line

### opts (optional)
Object, declare some parameters for spawn process:

silent: default is false, control whether the output info will be print on the default output stream ... : other configuration in child_process.spawn

### callback

function(err,stdout,stderr){

}

## Thank you for these package authors:
[easy-spawn](https://github.com/ddliu/node-easy-spawn)  
[create-spawn](https://github.com/nneutrinno/create-spawn)  
[exec-sh](https://github.com/tsertkov/exec-sh)
0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago