Skip to content

Commit

Permalink
Merge pull request #537 from bdukes/cross-spawn
Browse files Browse the repository at this point in the history
Use cross-spawn to spawn processes
  • Loading branch information
aheckmann authored Aug 1, 2016
2 parents 47208eb + c692f56 commit d173005
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Module dependencies.
*/

var spawn = require('child_process').spawn;
var spawn = require('cross-spawn');
var utils = require('./utils');
var debug = require('debug')('gm');
var series = require('array-series');
Expand Down
2 changes: 1 addition & 1 deletion lib/compare.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// compare

var spawn = require('child_process').spawn;
var spawn = require('cross-spawn');

/**
* Compare two images uses graphicsmagicks `compare` command.
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
"async": "~0.9.0"
},
"dependencies": {
"debug": "~2.2.0",
"array-parallel": "~0.1.3",
"array-series": "~0.1.5",
"array-parallel": "~0.1.3"
"cross-spawn": "^4.0.0",
"debug": "~2.2.0"
}
}

0 comments on commit d173005

Please sign in to comment.