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

curlf

v1.0.0-alpha.4

Published

File based, persistent and aesthetically pleasing HTTP requests! Just like curl, but with file templates

Downloads

2

Readme

Build Status

Curlf

File based, persistent and aesthetically pleasing HTTP requests! Just like curl, but with file templates.

Usage

npx curlf ./request.curlf

Or from stdin:

npx curlf --stdin <<EOF
GET http://some.url
EOF

.curlf file format

[[<version>] <method>] <url>
[<headerKey>: <headerValue>]*

[<body>]

NOTE! At least one empty line must exist between headers block and body.

Environment variables can be used anywhere within the file!

<version>

Allowed values:

  • HTTP/1.0
  • HTTP/1, HTTP/1.1
  • HTTP/2, HTTP/2.0
  • HTTP/3

<method>

Allowed values:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE
  • HEAD
  • OPTIONS

<url>

You know, a full url

Logging

The following flags can be used to specify the logging level:

  • verbose, v

It can also be set through env variable CURLF_LOGLEVEL, which can take any of the following values:

  • VERBOSE, SILLY, 4: Log detailed response (like request headers, request body and response headers)
  • DEFAULT, INFO, 3: Log basic response (url, status, response content)
  • QUIET, 2: Log response content only
  • ERROR, 1: Log errors only
  • SILENT, 0: Log nothing ¯\_(ツ)_/¯

Run travis script on bash

yq read .travis.yml 'script[*]' | bash

Todo

  • Support for further curl flags
  • Custom renderers/formatters