# @7c/validurl

> rigorous url validation

Latest version **0.0.3** (published 2021-01-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @7c/validurl
pnpm add @7c/validurl
yarn add @7c/validurl
bun add @7c/validurl
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-01-29 |
| First published | 2021-01-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | 7c |
| Keywords | url, validation |

## Links

- npm: https://www.npmjs.com/package/@7c/validurl
- Repository: https://github.com/7c/validurl
- Homepage: https://github.com/7c/validurl#readme
- Issues: https://github.com/7c/validurl/issues
- npm.io page: https://npm.io/package/@7c/validurl

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

- 0.0.3 (latest) — 2021-01-29
- 0.0.2 — 2021-01-27
- 0.0.1 — 2021-01-27

## README

# validURL

validating URLs is tricky job. There are tons of approaches. This is my liberal approach.

## Features
- supports any protocols (https|http|ftp|arbitrary)://
- supports ipv6 hostnames
- supports punycode urls
- tested against 1.3M URLs


## Testing
testing might take a while, since we are testing against 1.3Million URLs. Test files are only available at github clone. They will be ignored for npm package.

`npm run test`

## Install
```
npm i --save @7c/validurl
```

## Usage
```
const validURL = require('@7c/validurl')

console.log(validURL('http://localhost'))
```


All kind of bugreports are welcome

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