# url-exist

> Check if a URL exists.

Latest version **3.0.1** (published 2022-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install url-exist
pnpm add url-exist
yarn add url-exist
bun add url-exist
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2022-08-11 |
| First published | 2019-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=14.8 |
| Dependencies | 3 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Richie Bendall |
| Maintainers | richienb |
| Keywords | url, exists, check, validation, promise, modern, async |

## Links

- npm: https://www.npmjs.com/package/url-exist
- Repository: https://github.com/Richienb/url-exist
- npm.io page: https://npm.io/package/url-exist

## Dependencies (3)

- [ky](https://npm.io/package/ky.md) ^0.27.0
- [ky-universal](https://npm.io/package/ky-universal.md) ^0.10.1
- [is-url-superb](https://npm.io/package/is-url-superb.md) ^6.1.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 3.0.1 (latest) — 2022-08-11
- 3.0.0 — 2021-01-27
- 2.0.2 — 2020-05-07
- 2.0.1 — 2020-03-07
- 2.0.0 — 2020-02-23
- 1.1.1 — 2020-01-04
- 1.1.0 — 2019-12-03
- 1.0.0 — 2019-11-30
- 0.0.0 — 2019-11-30

## README

# URL Exist

Check if a URL exists.

[![NPM Badge](https://nodei.co/npm/url-exist.png)](https://npmjs.com/package/url-exist)

## Install

```sh
npm install url-exist
```

## Improvements over [`url-exists`](https://github.com/boblauer/url-exists)

- Promise interface.
- Works cross-platform.
- Smaller install size.
- Typescript support included.
- Catches invalid URLs.
- Actively maintained.

## Usage

```js
import urlExist from "url-exist"

await urlExist("https://google.com")
//=> true

await urlExist("https://google.com/404ingURL")
//=> false
 
await urlExist("notaurl")
//=> false
```

## API

### urlExist(url)

#### url

Type: `string`

The URL to check.

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