# urlstatuschecker

> A command line tool for check all the url's status inside the local html file

Latest version **1.0.1** (published 2020-12-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install urlstatuschecker
pnpm add urlstatuschecker
yarn add urlstatuschecker
bun add urlstatuschecker
```

Provides the command `urlstatuschecker`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-12-03 |
| First published | 2020-12-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 41 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Junyong Liu |
| Maintainers | tianlangwu |

## Links

- npm: https://www.npmjs.com/package/urlstatuschecker
- Repository: https://github.com/tianlangwu/urlStatusChecker
- Homepage: https://github.com/tianlangwu/urlStatusChecker#readme
- Issues: https://github.com/tianlangwu/urlStatusChecker/issues
- npm.io page: https://npm.io/package/urlstatuschecker

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [request](https://npm.io/package/request.md) ^2.88.2
- [optimist](https://npm.io/package/optimist.md) ^0.6.1

## Recent versions

- 1.0.1 (latest) — 2020-12-03
- 1.0.0 — 2020-12-03

## README

# UrlStatusChecker

UrlStatusChecker is a command-line tool written in Node.js to check all the URL's status inside your local file.
The current version is 0.1. <br>
If the URL is good with the status code 200, it prints "GOOD" in green. <br>
If the URL is bad with the status code 400 or 404, it prints "BAD" in Red. <br>
If the URL is redirect with the status code 301, 307, 308 , it prints "Redirect" in Blue. <br>
If the RUL is broken or no response, it prints "Broken / No response" in White. <br>
Else, it prints "UNKNOWN" in grey.

# How do I install this?

Run the command using

```bash
npm i -g https://github.com/tianlangwu/urlStatusChecker
```

Or download the files, then "run npm install -g pathName"

```bash
npm install -g C:\Seneca\OSD600\Release0.1
```

After downloan, yo can also "cd" to the path directory then run npm link / npm install -g<br>

# How do I run it?

Run the command using "urlstatuschecker Path\filename".<br>

```bash
urlstatuschecker C:\Seneca\OSD600\Release0.1\test1.html
```

For multiple file 

```bash
urlstatuschecker C:\Seneca\OSD600\Release0.1\test1.html test3.html
```

# Features

1. URLs printed in colors depending on their status.<br>
2. Support command line args (e.g., --version).
3. Won't crash when accessing a bad URL or timeouts.
4. Allow passing multiple file paths

# Available command args

-v / -version: Show the Current version of urlStatusChecker.<br>
-u: Check the url status directly<br>
-g: only good URLs to get displayed<br>
-b：only bad URLs to get displayed<br>
-j: output JSON file in format of [ { "url": 'https://www.google.com', "status": 200 }, { "url": 'https://bad-link.com', "status": 404 } ]<br>
-i/: allows specifying two files, first file should contain the links to be ignored if they are contained in the second file.<br>

```bash
urlstatuschecker -u http://www.google.com
```

---
_Source: https://npm.io/package/urlstatuschecker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
