2.1.4 • Published 2 years ago

url-exists-deep v2.1.4

Weekly downloads
292
License
MIT
Repository
github
Last release
2 years ago

url-exists-deep npm version Node CI

A deeper determination if an URL exists.

It tests for:

  • Domain available and accessible
  • Url available and accessible
  • Redirect available and accessible

url-exists-deep was developed for performance and accuracy. To check whether a url exists and is publicly accessible or not a HEAD request is sent, because this is much faster then a GET. Most hosts are responding correct. If the host responses with a 403 Forbidden a GET request with User-Agent and Accept header is sent.

Installation

> npm i url-exists-deep

Usage

import urlExists from 'url-exists-deep';
const url = 'https://www.google.com';
const exists = await urlExists(url);

Result

Returns false if url does not exists or object with url information.

Makes a deeper determination if a url exists or not. To reduce false negative responses.

Rewrites 301

If url redirects with 301 url-exists-deep follows the redirect and returns the destination url if exists.

2.1.4

2 years ago

2.1.2

2 years ago

2.1.3

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.10

4 years ago

2.0.9

4 years ago

2.0.7

4 years ago

2.0.8

4 years ago

2.0.6

4 years ago

2.0.3

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

8 years ago

0.0.1

8 years ago