0.8.0 • Published 3 years ago

image-url-checker v0.8.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
3 years ago

image-url-checker

A small Node.js tool & library that checks image 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.17.6)
  • npm 6+ (recommended v6.14.15)

As a tool

# Basic
npx image-url-checker -i input_file.csv -o output_file.csv

# Advanced (fullname)
npx image-url-checker \ 
  --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 image-url-checker \ 
  -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 image-url-checker
import Program from './Program';

const program = new Program();

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

3 years ago

0.7.0

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago