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

url-examiner

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-examiner

Node images URL checker

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

url-examiner

A small Node.js tool & library that checks URL from a given CSV input file and report the analysis results in a new CSV output file.

Usage

Prerequisites

You need a working version of:

  • Node v14+ (recommended v14.18.0)
  • npm 6+ (recommended v6.14.15)

As a tool

# Basic
npx url-examiner -i input_file.csv -o output_file.csv

# Advanced (fullname)
npx url-examiner \ 
  --input input_file.csv \ 
  --output output_file.csv \
  --timeout 5000 \
  --headers "Authorization: Bearer xxx.yyy.zzz"
  --headers "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:64.0) Gecko/20100101 Firefox/80.0"
  --from 10
  --to 200
  --bulk 50

# Advanced (shortcut)
npx url-examiner \ 
  -i input_file.csv \ 
  -o output_file.csv \
  -m 5000 \
  -H "Authorization: Bearer xxx.yyy.zzz"
  -H "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:64.0) Gecko/20100101 Firefox/80.0"
  -f 10
  -t 200
  -b 50

Options:

optiondescriptiondefault value
-d --delay numberdelay (in ms) between two URL callsNone
-b --bulk numbernumber of concurrent HTTP calls during analysis phase10
-f --from numberline "from"None
-H --headers headers...HTTP request headersNone
(required) -i --input input_fileinput file pathNone
-m --timeout max-timemax time allowed to succeed an HTTP check request1000
-o --ouput filepathouput file pathNone
-s --separator charactercolumn separator;
-t --to numberline "to"None

Input file:

Supported file extension: .csv

Supported data format (without head line):

<reference>;<url>

Output file:

Screenshot

As a library

npm install url-examiner
import Program from './Program';

const program = new Program();

program.run('my-app -i input_file.csv -o output_file.csv').then(() => process.exit(0));

FAQs

Package last updated on 19 Oct 2021

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