Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@permaweb/beam

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@permaweb/beam

A hyperbeam cli tool

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

beam

A simple cURL clone built with JavaScript that uses the @permaweb/aoconnect package.

Installation

# Clone the repository
git clone https://github.com/yourusername/beam.git
cd beam

# Install dependencies
npm install

# Install globally
npm install -g .

Usage

beam [options] <url>

Options

  • -X, --request <method>: Request method to use (default: "GET")
  • -H, --header <header>: Pass custom header(s) to server (can be used multiple times)
  • -d, --data <data>: HTTP POST data
  • -o, --output <file>: Write to file instead of stdout
  • -v, --verbose: Make the operation more talkative
  • -f, --file <file>: Read data from file
  • --raw: Display raw response data
  • -h, --help: Display help for command
  • -V, --version: Output the version number

Examples

# Simple GET request
beam https://example.com

# POST request with data
beam -X POST -H "Content-Type: application/json" -d '{"key":"value"}' https://example.com/api

# POST request with data from file
beam -X POST -H "Content-Type: application/json" -f data.json https://example.com/api

# Save response to file
beam https://example.com -o response.txt

# Verbose mode
beam -v https://example.com

How it works

The beam CLI extracts headers from -H flags and data from -d flag, then uses the @permaweb/aoconnect package's request function to make HTTP requests. It organizes the URL, headers, and other parameters into tags that are compatible with the aoconnect API.

License

MIT

Keywords

curl

FAQs

Package last updated on 08 May 2025

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