phantom-bridge 
> Simple PhantomJS bridge
Install
$ npm install --save phantom-bridge
Usage
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);
License
MIT © Sindre Sorhus
Source
| 1 | # phantom-bridge [](https://travis-ci.org/sindresorhus/phantom-bridge) |
| 2 | |
| 3 | > Simple [PhantomJS](http://phantomjs.org) bridge |
| 4 | |
| 5 | |
| 6 | ## Install |
| 7 | |
| 8 | ``` |
| 9 | $ npm install --save phantom-bridge |
| 10 | ``` |
| 11 | |
| 12 | |
| 13 | ## Usage |
| 14 | |
| 15 | ```js |
| 16 | var path = require('path'); |
| 17 | var phantomBridge = require('phantom-bridge'); |
| 18 | |
| 19 | var cp = phantomBridge(path.join(__dirname, 'phantom-script.js'), [ |
| 20 | '--ignore-ssl-errors=true', |
| 21 | '--local-to-remote-url-access=true', |
| 22 | '--ssl-protocol=any' |
| 23 | ]); |
| 24 | |
| 25 | cp.stdout.pipe(process.stdout); |
| 26 | ``` |
| 27 | |
| 28 | |
| 29 | ## License |
| 30 | |
| 31 | MIT © [Sindre Sorhus](http://sindresorhus.com) |