fetch-service

1.0.0 • Public • Published

fetch-service

Node.js abstraction for an HTTP agent with connection pool to a particular API

const Service = require( 'fetch-service' );
 
const someApi = new Service( 'http://some.api.com' );
 
someApi.request( '/path' ); // returns a Promise of Request

For documentation on the Request object, see: https://developer.mozilla.org/en-US/docs/Web/API/Request

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i fetch-service

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • terhix