https://github.com/7c/validurl
rigorous url validation for nodejs
https://github.com/7c/validurl
Last synced: 10 months ago
JSON representation
rigorous url validation for nodejs
- Host: GitHub
- URL: https://github.com/7c/validurl
- Owner: 7c
- Created: 2021-01-27T20:43:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T12:04:58.000Z (over 5 years ago)
- Last Synced: 2025-09-01T20:06:09.248Z (10 months ago)
- Language: JavaScript
- Size: 82.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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