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.7
Version published
Weekly downloads
11
266.67%
Maintainers
1
Weekly downloads
 
Created
Source

https-client

npm version

Simple async RESTful client for node.js https module.

Exports get, post, put, delete methods.

No dependencies other than https module.

Example:

const { post } = require('https-client');
const body = {};
const headers = {};
const response = await post('/v1/endpoint', 'my-host.com', body, headers);

get also takes a body and converts it into query parameters for you.

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

Keywords

https

FAQs

Package last updated on 20 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