Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 375 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 375 Bytes

@skuyjs/http-client

Client to make HTTP request for NodeJS.

Usage

Examples of sending an HTTP request with a different request method.

GET

const Client = require('@skuyjs/http-client');

Client
  .get('https://jsonplaceholder.typicode.com/posts/1')
  .then(result => {
    console.log(result);
  })
  .catch(err => {
    console.log(err);
  });