Simple PhantomJS bridge
$ npm install --save phantom-bridge
var path = require('path');
var phantomBridge = require('phantom-bridge');
var cp = phantomBridge(path.join(__dirname, 'phantom-script.js'), [
'--ignore-ssl-errors=true',
'--local-to-remote-url-access=true',
'--ssl-protocol=any'
]);
cp.stdout.pipe(process.stdout);MIT © Sindre Sorhus