From 3cf6d8af0b5a99578ba6a4650ba7b15a98cd240a Mon Sep 17 00:00:00 2001 From: "honza.pofider@seznam.cz" Date: Fri, 12 Feb 2016 00:09:39 +0100 Subject: [PATCH] add note about phantomjs2 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index b9f1605..74aa2b5 100644 --- a/README.md +++ b/README.md @@ -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