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

http-aws4

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-aws4

Performs AWS Signature Version 4-signed HTTP requests from the command line.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
-88%
Maintainers
1
Weekly downloads
 
Created
Source

http-aws4

npm Dependencies JavaScript Standard Style

Performs AWS Signature Version 4-signed HTTP requests from the command line.

Inspired by the awesome HTTPie.

Installation

npm i -g http-aws4

Usage

Perform a GET on your AWS Elasticsearch index called blog:

haws https://search-....us-east-1.es.amazonaws.com/blog

Delete the blog index:

haws delete https://search-....us-east-1.es.amazonaws.com/blog

Options

--print FLAGS, -p FLAGS

Controls which parts of the request are output. Allowed flags:

FlagMeaning
HRequest headers
BRequest body
hResponse headers
bResponse body

For example, -p Hhb would print the request headers, the response headers, and the response body.

The default value is hb (response headers and response body), except for redirected output, where it is b (response body).

--pretty OUTPUT

Controls pretty-printing of the response body. Allowed values:

ValueMeaning
allBoth colors and formatting
colorsJust colors
formatJust formatting
noneRaw

The default value is all, except for redirected output, where it is none.

--region REGION, -r REGION

If the name of the AWS region cannot be detected from the URL, use this option to set it manually.

--service SERVICE, -s SERVICE

If the name of the AWS service cannot be detected from the URL, use this option to set it manually.

--profile PROFILE

Uses the specified profile. Note that setting this option will force reading credentials from the credentials file rather than from the environment.

--no-color

If you prefer not to colorize the output at all, pass this option, provided by supports-color.

Request Headers

Request headers can be specified after the URL as a space-separated list of name-value pairs, separated by a colon character. For example, this command would set the X-Foo header to bar, and the X-Baz header to quux:

haws https://... x-foo:bar x-baz:quux

Request Body

The process's standard input will be used as the request body. For example, if you have prepared an Elasticsearch bulk API request body in body.json, you can post it as follows:

haws post https://search-....us-east-1.es.amazonaws.com/_bulk <body.json

Author

Tim De Pauw

License

MIT

FAQs

Package last updated on 17 Oct 2018

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