caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
index.js | 8 months ago | |
license | 8 months ago | |
package.json | 8 months ago | |
readme.md | 8 months ago |
Check if an URL is absolute
$ npm install --save is-absolute-url
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.
MIT © Sindre Sorhus