/urlregex

URL validation for Node and the browser

Primary LanguageJavaScriptMIT LicenseMIT

urlregex

Greenkeeper badge

No-dependency URL validation for Node and the browser.

Install

npm install urlregex

Usage

const urlRegex = require('urlregex');
const isValid = urlRegex().test('http://github.com');

Credits

Mostly based on url-regex package, but optimized for browser usage

License

MIT