# is-url-http

> Check if an URL is a valid HTTP URL.

Latest version **2.3.13** (published 2025-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-url-http
pnpm add is-url-http
yarn add is-url-http
bun add is-url-http
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.3.13 |
| Published | 2025-11-21 |
| First published | 2018-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 8 |
| Dependencies | 1 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Kiko Beats |
| Maintainers | kikobeats |
| Keywords | boolean, check, http, https, is, url, whatwg |

## Links

- npm: https://www.npmjs.com/package/is-url-http
- Repository: https://github.com/Kikobeats/is-url-http
- Issues: https://github.com/Kikobeats/is-url-http/issues
- npm.io page: https://npm.io/package/is-url-http

## Dependencies (1)

- [url-http](https://npm.io/package/url-http.md) ~1.3.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 2.3.13 (latest) — 2025-11-21
- 2.3.12 — 2025-10-15
- 2.3.11 — 2025-09-05
- 2.3.10 — 2025-08-12
- 2.3.9 — 2024-11-04
- 2.3.8 — 2024-02-15
- 2.3.7 — 2023-10-24
- 2.3.6 — 2023-09-05
- 2.3.5 — 2023-02-01
- 2.3.4 — 2023-02-01
- 2.3.3 — 2023-01-31
- 2.3.2 — 2022-05-17
- 2.3.1 — 2022-04-28
- 2.3.0 — 2022-04-27
- 2.2.14 — 2022-04-12
- … 31 more at https://npm.io/package/is-url-http/versions

## README

# is-url-http

![Last version](https://img.shields.io/github/tag/Kikobeats/is-url-http.svg?style=flat-square)
[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/is-url-http.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/is-url-http)
[![NPM Status](https://img.shields.io/npm/dm/is-url-http.svg?style=flat-square)](https://www.npmjs.org/package/is-url-http)

> Check if an URL is a valid HTTP URL.

## Install

```bash
$ npm install is-url-http --save
```

## Usage

```js
const isUrlHttp = require('is-url-http')

isUrlHttp('https://kikobeats.com') // ==> true
isUrlHttp('https://kikobeats.com') // ==> true
isUrlHttp('mailto://kiko@beats.com') // ==> false
isUrlHttp('callto:192.168.103.77+type=ip') // ==> false
```

If you need to run the package in a browser environment, you can save some bytes using the lightweight version:

```js
const isUrlHttp = require('is-url-http/lightweight')

isUrlHttp('https://kikobeats.com') // ==> true
isUrlHttp('https://kikobeats.com') // ==> true
isUrlHttp('mailto://kiko@beats.com') // ==> false
isUrlHttp('callto:192.168.103.77+type=ip') // ==> false
```

## License

**is-url-http** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/Kikobeats/is-url-http/blob/master/LICENSE.md) License.<br>
Authored and maintained by Kiko Beats with help from [contributors](https://github.com/Kikobeats/is-url-http/contributors).

> [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/Kikobeats) · Twitter [@Kikobeats](https://twitter.com/Kikobeats)

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