Skip to content

Commit

Permalink
add note about phantomjs2
Browse files Browse the repository at this point in the history
  • Loading branch information
pofider committed Feb 11, 2016
1 parent 34914e1 commit 3cf6d8a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ conversion({
}, cb);
```

##phantomjs2
This package includes phantomjs 1.9.x distribution. If you like to rather use latest phantomjs you can provide it in the `phantomPath` option.

Install [phantomjs-prebuilt](https://www.npmjs.com/package/phantomjs-prebuilt) and then...
```js
conversion({
html: "foo",
phantomPath: require("phantomjs-prebuilt").path
}, function (err, res){})
```

##Kill workers
```js
//kill all phantomjs workers when using phantom-server strategy
Expand Down

0 comments on commit 3cf6d8a

Please sign in to comment.