Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

execspawn

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

execspawn - npm Package Compare versions

Comparing version 0.2.1 to 1.0.0

6

execspawn.js

@@ -10,3 +10,3 @@

if (process.platform === 'win32') {
file = 'cmd.exe';
file = process.env.comspec || 'cmd.exe';
args = ['/s', '/c', '"' + command + '"'];

@@ -20,3 +20,7 @@ options.windowsVerbatimArguments = true;

if (options && options.shell) {
file = options.shell;
}
return spawn(file, args, options);
};

8

package.json
{
"name": "execspawn",
"description": "spawn stream for child_process.exec",
"version": "0.2.1",
"version": "1.0.0",
"author": "Andreas Madsen <amwebdk@gmail.com>",

@@ -20,9 +20,9 @@ "main": "./execspawn.js",

"dependencies": {
"util-extend": "1.0.x"
"util-extend": "^1.0.1"
},
"devDependencies": {
"tap": "0.6.x",
"endpoint": "0.4.x"
"tap": "^5.0.0",
"endpoint": "^0.4.5"
},
"license": "MIT"
}

@@ -6,3 +6,3 @@

test('simple test', function (t) {
test('default', function (t) {
execstream('echo "hallo world";').stdout.pipe(endpoint(function (err, out) {

@@ -14,1 +14,9 @@ t.equal(err, null);

});
test('shell option', function (t) {
execstream('hallo world', { shell: 'echo' }).stdout.pipe(endpoint(function (err, out) {
t.equal(err, null);
t.equal(out.toString(), '-c hallo world\n');
t.end();
}));
});
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