http-scraper
v0.0.7
Published
http libs with extended utilities
Downloads
3
Readme
http-scraper
Install
npm i -S http-scraper
Usage
import Http from "http-scraper"
const host = 'api.ipify.org';
const uri = 'https://api.ipify.org';
const options = {host, uri};
const http = Http(options);
return http.get(options)
.get('body')
.then(({ip}) => {
assert.equal(Boolean(ip), true, 'should get ip');
})
.catch(assert.end);
For more usage information, check tests directory.
License
MIT © Raabb Ajam