phantomjscloud-examples

examples showing usage of PhantomJs Cloud with typescript

# phantomjscloud-node-examples

abstract

some examples showing how to use the PhantomJsCloudnpm package.

if you have any additional examples, please feel free to either email them to jasons@phantomjscloud.comor submit a pull request.

conversely, if you need an example of something, feel free to open an issue on githuband Jason will try to help out.

The examples are written in Typescript, but the output javascript (under ./dist/) is highly readable.

installation

  1. download: npm install phantomjscloud-examplesor pull the repository from github
  2. npm installto install the prerequisite phantomjscloudmodule.
  3. browse to the desired ./built/basic/*file and read the code.

run

you can run the various examples from the root directory in this way:

  • node ./built/basic/post-request.js

  • node ./built/basic/capture-pdf.js

  • node ./built/basic/capture-pdf-promise.js

  • node ./built/basic/capture-plaintext-promise.js

  • check the ./built/folder structure for any other (new) examples too.

HomePage

https://github.com/Novaleaf/phantomjscloud-node-examples

Repository

https://github.com/Novaleaf/phantomjscloud-node-examples


上一篇:phantomjscloud-lite
下一篇:phantomjscloud

相关推荐

官方社区

扫码加入 JavaScript 社区