@thinkeloquent/phantomjs-xhr
1.0.9 • Public • Published 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);
Package Sidebar
Install
npm i @thinkeloquent/phantomjs-xhr
Weekly Downloads