npm-execspawn

Spawn locally installed npm dependencies with cross platform env and argument parsing support

MIT 12 个版本
安装
npm install npm-execspawn
yarn add npm-execspawn
pnpm add npm-execspawn
bun add npm-execspawn
README

npm-execspawn

Spawn locally installed npm dependencies with cross platform env and argument parsing support.

npm install npm-execspawn

build status

Usage

First do

npm install browserify

Then

var execspawn = require('npm-execspawn')

var child = execspawn('browserify $FILENAME', {env:{FILENAME:'test.js'}})
child.stderr.pipe(process.stderr)
child.stdout.pipe(process.stdout)

The above should browserify test.js and both windows and unix. The options is passed directly to child_process.spawn.

You can also pass in a arguments array

execspawn('echo $0 $1 and $2', ['a', 'b', 'c']).stdout.pipe(process.stdout)

The above will print echo a b and c on all platforms.

License

MIT

版本列表
1.3.0 2016-03-17
1.2.2 2016-01-05
1.2.1 2015-09-10
1.2.0 2015-04-07
1.1.0 2015-04-06
1.0.6 2014-08-06
1.0.5 2014-07-03
1.0.4 2014-07-03
1.0.3 2014-07-03
1.0.2 2014-07-01
1.0.1 2014-07-01
1.0.0 2014-07-01