Comparing version 0.2.1 to 1.0.0
@@ -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); | ||
}; |
{ | ||
"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" | ||
} |
10
test.js
@@ -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(); | ||
})); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4345
36
1
1
Updatedutil-extend@^1.0.1