oef/node_modules/is-absolute-url
2019-11-04 15:00:46 +01:00
..
index.js First commit 2019-11-04 15:00:46 +01:00
license First commit 2019-11-04 15:00:46 +01:00
package.json First commit 2019-11-04 15:00:46 +01:00
readme.md First commit 2019-11-04 15:00:46 +01:00

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

See is-relative-url for the inverse.

License

MIT © Sindre Sorhus