Check if a string is a URL
$ npm install is-url-superb
const isUrl = require('is-url-superb');
isUrl('https://sindresorhus.com');
//=> true
isUrl('unicorn');
//=> false
- is - Type check values
Check if a string is a URL
$ npm install is-url-superb
const isUrl = require('is-url-superb');
isUrl('https://sindresorhus.com');
//=> true
isUrl('unicorn');
//=> false