This should offer identical functionality as the phantomjscloud
npm module, but this is a stripped down version (fewer dependencies) which should be easier to run in a browser.
npm install phantomjscloud-lite
Please see the normal phantomjscloud
docs: https://www.npmjs.com/package/phantomjscloud