No-dependency URL validation for Node and the browser.
npm install urlregex
const urlRegex = require('urlregex');
const isValid = urlRegex().test('http://github.com');
Mostly based on url-regex package, but optimized for browser usage
MIT
No-dependency URL validation for Node and the browser.
npm install urlregex
const urlRegex = require('urlregex');
const isValid = urlRegex().test('http://github.com');
Mostly based on url-regex package, but optimized for browser usage
MIT