raabbajam / http-scraper

http libs with extended utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http-scraper

NPM Version Coverage Status Build Status Downloads Dependency Status License

http libs with extended utilities

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

About

http libs with extended utilities

License:Other


Languages

Language:JavaScript 100.0%