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

loh

v3.0.1

Published

http request on cli with ease

Downloads

9

Readme

loh

Make http request on cli with ease

Installation

Use package managers:

npm install -g loh # npm
yarn global add loh # yarn
npx loh 

Usage

Fetch request

You can do a fetch request using axios with ease

$ loh fetch --url https://example.com

Re-run commands

You can easily rerun previous commands (and make changes)

$ loh rerun 

Run loh help to see the list of available commands and options

Options

| Option | Description | Example | | ---------- | --------------- | ----------- | | -u, --url | Specify the url to make request to | loh fetch -u https://example.com | | -m, --method | Specify the request method | loh fetch -u https://example.com -m POST | | -o, --output | Specify a filename for response output | loh fetch -u https://loh.js.org -o output.txt | | -d, --display | Display some output data as preview | loh fetch -u https://loh.js.org --display | | -r, --repeat | Specify the amount of requests to make repeatedly | loh fetch -u https://loh.js.org -r 5 | | -w, --wait | Specify the time to wait in (ms) before the next request is made | loh fetch -u https://loh.js.org --wait 1000 -r 5 | | -H, --headers | Set the request header | loh fetch -u https://loh.js.org --headers '{"Authorization": "Bearer 1234"}' | | -B, --body | Set the request body | loh fetch -u https://loh.js.org --method POST --body '{"value": "hello world"}' | | -t, --timeout | Timeout of the request | loh fetch -u https://loh.js.org --timeout 2000 | | -p, --proxy | Set the request proxy | loh fetch -u https://loh.js.org --proxy user:[email protected]:9050 | | --relay | Use a random fetch relay to make the request | loh fetch -u https://loh.js.org --relay |

Configure Relays

loh supports Relay Server

# add relay
$ loh --addrelay https://relayserver.example

# remove relay
$ loh --removerelay https://relayserver.example

# list relay
$ loh --listrelays https://relayserver.example

Contributors

License

This project is available as open source under the terms of the AGPL-3.0 License