0.0.7 • Published 8 years ago

http-scraper v0.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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