is-url-superb

Check if a string is a URL


Keywords
url, uri, string, validate, check, is
License
MIT
Install
npm install is-url-superb@3.0.0

Documentation

is-url-superb Build Status

Check if a string is a URL

Created because the is-url module is too loose. This module depends on a much more comprehensive regex.

Install

$ npm install is-url-superb

Usage

const isUrl = require('is-url-superb');

isUrl('https://sindresorhus.com');
//=> true

isUrl('//sindresorhus.com');
//=> true

isUrl('unicorn');
//=> false

License

MIT © Sindre Sorhus