JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q50025F
  • License MIT

examples showing usage of PhantomJs Cloud with typescript

Package Exports

  • phantomjscloud-examples

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (phantomjscloud-examples) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

phantomjscloud-node-examples

abstract

some examples showing how to use the PhantomJsCloud npm package.

if you have any additional examples, please feel free to either email them to jasons@phantomjscloud.com 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.

installation

  1. download: npm install phantomjscloud-examples or pull the repository from github
  2. npm install to install the prerequisite phantomjscloud module.
  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.