New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

zerxes

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zerxes

HTTP Response Tester

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
20
566.67%
Maintainers
1
Weekly downloads
 
Created
Source

Zerxes

Zerxes is a CLI tool that helps with automation testing of HTTP redirects.

Usage

From any directory, you can run:

$ npx @zerxes [args]

Options

You can specify options through the command line (CLI).

CLIDescriptionDefault ValueExample
inInput file with valid test cases --in=./test-cases.xlsx
outOutput file with test results --out=./output.xlsx
maxHopsMaximum HTTP hops before failure10--maxHops=10
concurrencyMaximum concurrent tests20--concurrency=20

Input Formats

Zerxes currently currently only supports CSV and XLSX files for input.

XLSX

When receiving an XLSX file as input, the input file should be structured as follows (without headers):

  • Column 1: The URL to start from (ex: http://google.com)
  • Column 2: The expected URL to be redirected to (ex: http://www.google.com)
  • Column 3: The maximum hop count for the redirect (ex: 2). Optional, leave blank to use default value.

Example:

   
http://google.comhttp://www.google.com
http://yahoo.comhttps://www.yahoo.com5

CSV

When receiving an CSV file as input, the input file should be structured as follows (without headers):

  • Column 1: The URL to start from (ex: http://google.com)
  • Column 2: The expected URL to be redirected to (ex: http://www.google.com)
  • Column 3: The maximum hop count for the redirect (ex: 2). Optional, leave blank to use default value.

Example:

http://www.google.com,http://www.google.com
http://www.yahoo.com,https://www.yahoo.com,5

Output Formats

Zerxes currently currently only supports CSV and XLSX files for output. Both formats will display the following table:

maxHopsurlexpectedRedirectsuccesshops
10http://google.comhttp://www.google.comTRUE1
5http://yahoo.comhttps://www.yahoo.comTRUE1

Examples

Call from CLI:

npx zerxes --in=./test/data/test.csv --out=./output.csv --maxHops=5
node index.js --in=./test/data/test.csv --out=./output.csv --maxHops=5

Install globally and run:

npm i -g zerxes
zerxes --in=./test/data/test.csv --out=./output.csv --maxHops=5

Keywords

http

FAQs

Package last updated on 24 Jun 2022

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