# is-valid-http-url

> Check whether a string is a valid HTTP URL

Latest version **1.0.3** (published 2019-09-07) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2019-09-07 |
| First published | 2018-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Denis Kotlica |
| Maintainers | neosiae |
| Keywords | http, url, uri, string, check, validate, validation |

## Links

- npm: https://www.npmjs.com/package/is-valid-http-url
- Repository: https://github.com/neosiae/is-valid-http-url
- Homepage: https://github.com/neosiae/is-valid-http-url#readme
- Issues: https://github.com/neosiae/is-valid-http-url/issues
- npm.io page: https://npm.io/package/is-valid-http-url

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-09-07
- 1.0.2 — 2019-05-28
- 1.0.1 — 2018-03-08
- 1.0.0 — 2018-03-03

## README

# is-valid-http-url

[![Build Status](https://travis-ci.org/neosiae/is-valid-http-url.svg?branch=master)](https://travis-ci.org/neosiae/is-valid-http-url)

Check whether a string is a valid HTTP URL

This module is based on a [gist](https://gist.github.com/dperini/729294) by [Diego Perini](https://github.com/dperini).

## Install

Install is-valid-http-url using [npm](https://www.npmjs.com):

> npm install --save is-valid-http-url

Or via [yarn](https://yarnpkg.com/en):

> yarn add is-valid-http-url

## Usage

```javascript
const isUrl = require("is-valid-http-url");

isUrl("http://example.com"); // true
isUrl("https://www.example.com/foo/?bar=baz&inga=42&quux"); // true

isUrl("example.com"); // false
isUrl("http://foo.bar?q=Spaces should be encoded"); // false
```

## License

MIT

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