BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / phantom-bridge / readme.md

readme.md

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
readme.md 618 B Download Raw

phantom-bridge Build Status

> 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 [![Build Status](https://travis-ci.org/sindresorhus/phantom-bridge.svg?branch=master)](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
16var path = require('path');
17var phantomBridge = require('phantom-bridge');
18
19var 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
25cp.stdout.pipe(process.stdout);
26```
27
28
29## License
30
31MIT © [Sindre Sorhus](http://sindresorhus.com)