Andrea Fazzi 929328de94 Replace domain name 4 年 前
..
index.js 994369ab61 First commit 7 年 前
license 994369ab61 First commit 7 年 前
package.json 929328de94 Replace domain name 4 年 前
readme.md 994369ab61 First commit 7 年 前

readme.md

is-absolute-url Build Status

Check if an URL is absolute

Install

$ npm install --save is-absolute-url

Usage

var isAbsoluteUrl = require('is-absolute-url');

isAbsoluteUrl('http://sindresorhus.com/foo/bar');
//=> true

isAbsoluteUrl('//sindresorhus.com');
//=> false

isAbsoluteUrl('foo/bar');
//=> false

Related

See is-relative-url for the inverse.

License

MIT © Sindre Sorhus