New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

https-client

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

https-client

Simple async RESTful client for node.js https module. Simple interface for GET/POST/PUT/DELETE calls.

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
11
266.67%
Maintainers
1
Weekly downloads
 
Created
Source

https-client

Simple async RESTful client for node.js https module. Useful functionality for GET/POST/PUT/DELETE calls. No dependencies other than https module.

Clients extend default export HttpsClient which allows them to inherit the call method.

Use call method like:

const body = {};
const headers = {};
return await this.call('POST', 'https://my-host.com', '/v1/endpoint', body, headers);

GET requests also take a body and convert it into query parameters for you.

Status code >= 400 will cause a rejection of the call.

Keywords

https

FAQs

Package last updated on 19 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts