@cjser/is-absolute-url__v4_0_1
v4.0.1-cjser.2
Published
Check if a URL is absolute
Readme
is-absolute-url
Check if a URL is absolute
Install
$ npm install is-absolute-urlUsage
import isAbsoluteUrl from 'is-absolute-url';
isAbsoluteUrl('https://sindresorhus.com/foo/bar');
//=> true
isAbsoluteUrl('//sindresorhus.com');
//=> false
isAbsoluteUrl('foo/bar');
//=> falseRelated
See is-relative-url for the inverse.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/is-absolute-url
