JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 606
  • Score
    100M100P100Q94989F
  • License MIT

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

Package Exports

  • npm-execspawn

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npm-execspawn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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