Check if a string is a URL
$ npm install is-url-superb
import isUrl from 'is-url-superb';
isUrl('https://sindresorhus.com');
//=> true
isUrl('unicorn');
//=> false
Type: object
Type: boolean
Default: false
Allow URLs without a protocol.
import isUrl from 'is-url-superb';
isUrl('example.com');
//=> false
isUrl('example.com', {lenient: true});
//=> true
Overall
Maintained
Code review
Latest release
Releases this year
50 followers · starred Aug 2016
Check if a string is a URL
$ npm install is-url-superb
import isUrl from 'is-url-superb';
isUrl('https://sindresorhus.com');
//=> true
isUrl('unicorn');
//=> false
Type: object
Type: boolean
Default: false
Allow URLs without a protocol.
import isUrl from 'is-url-superb';
isUrl('example.com');
//=> false
isUrl('example.com', {lenient: true});
//=> true
Overall
Maintained
Code review
Latest release
Releases this year
50 followers · starred Aug 2016