diff --git a/lib/command.js b/lib/command.js index 0b36589a..3101922f 100644 --- a/lib/command.js +++ b/lib/command.js @@ -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'); diff --git a/lib/compare.js b/lib/compare.js index bab52622..a24ea047 100644 --- a/lib/compare.js +++ b/lib/compare.js @@ -1,6 +1,6 @@ // compare -var spawn = require('child_process').spawn; +var spawn = require('cross-spawn'); /** * Compare two images uses graphicsmagicks `compare` command. diff --git a/package.json b/package.json index f6245ecb..a783464b 100644 --- a/package.json +++ b/package.json @@ -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" } }