URL validation for Node and the browser
npm install urlregex
No-dependency URL validation for Node and the browser.
```
npm install urlregex
`js`
const urlRegex = require('urlregex');
const isValid = urlRegex().test('http://github.com');$3
You can provide the allowedProtocols option to specify which protocols are allowed in the URL. It can either be an array of strings or the '*'` wildcard to allow any protocol.
Mostly based on url-regex package, but optimized for browser usage
MIT