New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

loh

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loh

http request on cli with ease

  • 3.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by1100%
Maintainers
2
Weekly downloads
 
Created
Source

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

OptionDescriptionExample
-u, --urlSpecify the url to make request toloh fetch -u https://example.com
-m, --methodSpecify the request methodloh fetch -u https://example.com -m POST
-o, --outputSpecify a filename for response outputloh fetch -u https://loh.js.org -o output.txt
-d, --displayDisplay some output data as previewloh fetch -u https://loh.js.org --display
-r, --repeatSpecify the amount of requests to make repeatedlyloh fetch -u https://loh.js.org -r 5
-w, --waitSpecify the time to wait in (ms) before the next request is madeloh fetch -u https://loh.js.org --wait 1000 -r 5
-H, --headersSet the request headerloh fetch -u https://loh.js.org --headers '{"Authorization": "Bearer 1234"}'
-B, --bodySet the request bodyloh fetch -u https://loh.js.org --method POST --body '{"value": "hello world"}'
-t, --timeoutTimeout of the requestloh fetch -u https://loh.js.org --timeout 2000
-p, --proxySet the request proxyloh fetch -u https://loh.js.org --proxy user:password@127.0.0.1:9050
--relayUse a random fetch relay to make the requestloh 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

FAQs

Package last updated on 05 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc