New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

npm-execspawn

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-execspawn

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

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
791
decreased by-58.28%
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 17 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc