Skip to content

Commit c8a17ee

Browse files
rejasindexzero
authored andcommitted
Use cross_spawn for better windows compatibility (#37)
1 parent 57dcf95 commit c8a17ee

File tree

4 files changed

+345
-9
lines changed

4 files changed

+345
-9
lines changed

lib/nexpect.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
* (C) 2011, Elijah Insua, Marak Squires, Charlie Robbins.
55
*
66
*/
7-
8-
var spawn = require('child_process').spawn;
7+
var spawn = require('cross-spawn');
98
var util = require('util');
109
var AssertionError = require('assert').AssertionError;
1110

package-lock.json

+334
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "Spawns and interacts with child processes using spawn / expect commands",
44
"version": "0.5.0",
55
"author": "Nodejitsu Inc. <[email protected]>",
6+
"license": "MIT",
67
"maintainers": [
78
"indexzero <[email protected]>",
89
"AvianFlu <[email protected]>"
@@ -17,16 +18,19 @@
1718
"child process",
1819
"terminal"
1920
],
21+
"dependencies": {
22+
"cross-spawn": "^6.0.5"
23+
},
2024
"devDependencies": {
21-
"colors": "0.x.x",
22-
"prompt": "~0.2.11",
23-
"vows": "~0.5.x"
25+
"colors": "^1.3.3",
26+
"prompt": "^1.0.0",
27+
"vows": "^0.8.2"
2428
},
2529
"main": "./lib/nexpect",
2630
"scripts": {
2731
"test": "vows --spec"
2832
},
2933
"engines": {
30-
"node": ">=0.8.0"
34+
"node": ">=6"
3135
}
3236
}

0 commit comments

Comments
 (0)