# nice-is-url

> Checks if a string is a valid url

Latest version **1.0.2** (published 2016-10-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install nice-is-url
pnpm add nice-is-url
yarn add nice-is-url
bun add nice-is-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.2 |
| Published | 2016-10-13 |
| First published | 2016-10-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Vigour.io |
| Maintainers | vigour-io |
| Keywords | getOwnPropertyDescriptors, prototype, url, util |

## Links

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

## Dependencies (1)

- [bubleify](https://npm.io/package/bubleify.md) ^0.5.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-10-13
- 1.0.1 — 2016-10-07
- 1.0.0 — 2016-10-06

## README

# nice-is-url

<!-- VDOC.badges travis; standard; npm; coveralls -->
<!-- DON'T EDIT THIS SECTION (including comments), INSTEAD RE-RUN `vdoc` TO UPDATE -->
[![Build Status](https://travis-ci.org/vigour-io/nice-is-url.svg?branch=master)](https://travis-ci.org/vigour-io/nice-is-url)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![npm version](https://badge.fury.io/js/nice-is-url.svg)](https://badge.fury.io/js/nice-is-url)
[![Coverage Status](https://coveralls.io/repos/github/vigour-io/nice-is-url/badge.svg?branch=master)](https://coveralls.io/github/vigour-io/nice-is-url?branch=master)

<!-- VDOC END -->

<!-- VDOC.jsdoc isUrl -->
<!-- DON'T EDIT THIS SECTION (including comments), INSTEAD RE-RUN `vdoc` TO UPDATE -->
#### var valid = isUrl(val, [options])

Checks if a string is a valid url
- **val** (*string*) - the string to check
- **[options]** (*object*) - defaults to `{}`

- **options.requireProtocol** {boolean} - set to true if you only want URLs with a protocol to be considered valid. Defaults to `false`
- **returns** (*boolean*) valid - `true` if *val* is a valid url, `false` otherwise

<!-- VDOC END -->

```javascript
const isUrl = require('nice-is-url')
isUrl('http://localhost:3000') // true
isUrl('boom') // false
```

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