lepu-test-platform-web/node_modules/is-absolute-url
zhangbo db3ebd0df0 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
..
index.js 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
license 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
package.json 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
readme.md 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00

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

See is-relative-url for the inverse.

License

MIT © Sindre Sorhus