1.0.9 • Published 7 years ago

@thinkeloquent/phantomjs-xhr v1.0.9

Weekly downloads
19
License
ISC
Repository
github
Last release
7 years ago
npm i @thinkeloquent/phantomjs-xhr
const phantomjsXhr = require('@thinkeloquent/phantomjs-xhr');

phantomjsXhr(<url>)
  .then(function(data) {
    console.log('har downloaded', data);
  })
  .catch(<exception method>)
  .finally(<finally method>)
const phantomjsXhr = require('@thinkeloquent/phantomjs-xhr/group');

phantomjsXhr(
  'https://www.chase.com/',
  'http://bluebirdjs.com/docs/api/ispending.html'
).then(function(resources) {
  resources.map(function(resource) {
    console.log('resource', resource);
  });
}).catch(console.error);