some examples showing how to use the PhantomJsCloud npm package.
if you have any additional examples, please feel free to either email them to [email protected] or submit a pull request.
conversely, if you need an example of something, feel free to open an issue on github and Jason will try to help out.
The examples are written in Typescript, but the output javascript (under ./dist/
) is highly readable.
- download:
npm install phantomjscloud-examples
or pull the repository from github - browse to the root folder
npm install
to get all the various prerequisites.
you can run the various examples from the root directory in this way:
node ./dist/basic/capture-pdf.js
node ./dist/basic/capture-pdf-promise.js
node ./dist/basic/capture-plaintext-promise.js
node ./dist/advanced/query-and-mine-alexa-topsites.js
- be sure to check the
./dist/
folder structure for any other (new) examples too.