
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Make http request on cli with ease
Use package managers:
npm install -g loh # npm
yarn global add loh # yarn
npx loh
You can do a fetch request using axios with ease
$ loh fetch --url https://example.com
You can easily rerun previous commands (and make changes)
$ loh rerun
Run loh help
to see the list of available commands and 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:password@127.0.0.1:9050 |
--relay | Use a random fetch relay to make the request | loh fetch -u https://loh.js.org --relay |
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
This project is available as open source under the terms of the AGPL-3.0 License
FAQs
http request on cli with ease
The npm package loh receives a total of 0 weekly downloads. As such, loh popularity was classified as not popular.
We found that loh demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.