Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 935 Bytes

File metadata and controls

36 lines (22 loc) · 935 Bytes

is-url-relative-without-domain

Build Status Coverage Status

Node.js module. Check if an URL is relative without domain

Install

$ npm install -S is-url-relative-without-domain

Usage

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

License

MIT © Nikita «Arttse» Bystrov