mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 01:45:15 +00:00
.. | ||
index.js | ||
license | ||
package.json | ||
readme.md |
is-absolute-url
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