npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

http-aws4

v1.0.1

Published

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

Downloads

51

Readme

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:

| Flag | Meaning | |:----:|------------------| | H | Request headers | | B | Request body | | h | Response headers | | b | Response 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:

| Value | Meaning | |:--------:|----------------------------| | all | Both colors and formatting | | colors | Just colors | | format | Just formatting | | none | Raw |

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