Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.09 KB

File metadata and controls

37 lines (23 loc) · 1.09 KB

is-url-relative-without-domain

Build Status Coverage Status Known Vulnerabilities

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