# is-url-superb

> Check if a string is a URL

Latest version **6.1.0** (published 2021-11-01) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.1.0 |
| Published | 2021-11-01 |
| First published | 2014-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=12 |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 86 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus, kevva |
| Keywords | url, uri, string, validate, check, is |

## Links

- npm: https://www.npmjs.com/package/is-url-superb
- Repository: https://github.com/sindresorhus/is-url-superb
- Homepage: https://github.com/sindresorhus/is-url-superb#readme
- Issues: https://github.com/sindresorhus/is-url-superb/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/is-url-superb

## 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

- 6.1.0 (latest) — 2021-11-01
- 6.0.0 — 2021-04-17
- 5.0.0 — 2020-11-29
- 4.0.0 — 2020-06-14
- 3.0.0 — 2019-04-21
- 2.0.0 — 2015-06-22
- 1.0.1 — 2014-11-26
- 1.0.0 — 2014-11-26

## README

# is-url-superb

> Check if a string is a URL

## Install

```
$ npm install is-url-superb
```

## Usage

```js
import isUrl from 'is-url-superb';

isUrl('https://sindresorhus.com');
//=> true

isUrl('unicorn');
//=> false
```

## API

### isUrl(string, options?)

#### options

Type: `object`

##### lenient

Type: `boolean`\
Default: `false`

Allow URLs without a protocol.

```js
import isUrl from 'is-url-superb';

isUrl('example.com');
//=> false

isUrl('example.com', {lenient: true});
//=> true
```

## Related

- [is](https://github.com/sindresorhus/is) - Type check values

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