Node.js module. Check if an URL is relative without domain
$ npm install -S is-url-relative-without-domain
var isUrlRelativeWithoutDomain = require('is-url-relative-without-domain');
isUrlRelativeWithoutDomain('/show/must?go=on');
//=> true
isUrlRelativeWithoutDomain('index.php');
//=> true
isUrlRelativeWithoutDomain('https://site.com/index.php');
//=> false
isUrlRelativeWithoutDomain('site.com/show/must?go=on');
//=> false
MIT © Nikita «Arttse» Bystrov