lhl 6ff0e96ad3 8-4-1 1 year ago
..
index.js 6ff0e96ad3 8-4-1 1 year ago
license 6ff0e96ad3 8-4-1 1 year ago
package.json 6ff0e96ad3 8-4-1 1 year ago
readme.md 6ff0e96ad3 8-4-1 1 year ago

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