Irina Glushko 2389e7160b HW1 done 3 gadi atpakaļ
..
index.js 2389e7160b HW1 done 3 gadi atpakaļ
license 2389e7160b HW1 done 3 gadi atpakaļ
package.json 2389e7160b HW1 done 3 gadi atpakaļ
readme.md 2389e7160b HW1 done 3 gadi atpakaļ

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