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

httpstat

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpstat

httpstat can visualize http performance like curl interface inspired by [go httpstat](http://github.com/davecheney/httpstat)

latest
Source
npmnpm
Version
1.5.4
Version published
Weekly downloads
15
-34.78%
Maintainers
1
Weekly downloads
 
Created
Source

httpstat

Build Status

httpstat is a curl like tool, visualize http/https process and show the duration.

image

Reference from python httpstat and go httpstat

Install as tool

$ npm install httpstat -g 

Usage as tool

$ httpstat http://example.com/
$ httpstat -X POST -d test http://example.com/

Install as library

$ npm install httpstat -S

Usage as library

const httpstat = require('httpstat');

httpstat('http://example.com', /* option, headers, body */).then((result) => {
  console.log(result); // time property has duration time.
}).catch((e) => {
  console.error(e);
});

API

httpstat(url, [options], [headers], [body]) - return Promise

  • url, type: string, url is a request target url. required.
  • options, type: object, options is a http(s) request options see node http API
  • headers, type: array, headers is http request headers like ["Content-Type: application/json"]
  • body, type: string, body is http request body.

Keywords

httpstat

FAQs

Package last updated on 06 Apr 2020

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