653 B
653 B
is-url-superb 
Check if a string is an URL
Created because the is-url module is too loose. This module depends on a much more comprehensive regex.
Install
$ npm install --save is-url-superb
Usage
var isUrl = require('is-url-superb');
isUrl('http://todomvc.com');
//=> true
isUrl('//todomvc.com');
//=> true
isUrl('unicorn');
//=> false
License
MIT © Sindre Sorhus