caoge c760052ff9 机车状态修改 8 months ago
..
index.js c760052ff9 机车状态修改 8 months ago
license c760052ff9 机车状态修改 8 months ago
package.json c760052ff9 机车状态修改 8 months ago
readme.md c760052ff9 机车状态修改 8 months 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