rittenhop-dev/versions/5.94.2/node_modules/is-absolute-url
2024-09-23 19:40:12 -04:00
..
index.d.ts first commit 2024-09-23 19:40:12 -04:00
index.js first commit 2024-09-23 19:40:12 -04:00
license first commit 2024-09-23 19:40:12 -04:00
package.json first commit 2024-09-23 19:40:12 -04:00
readme.md first commit 2024-09-23 19:40:12 -04:00

is-absolute-url Build Status

Check if a URL is absolute

Install

$ npm install is-absolute-url

Usage

const isAbsoluteUrl = require('is-absolute-url');

isAbsoluteUrl('https://sindresorhus.com/foo/bar');
//=> true

isAbsoluteUrl('//sindresorhus.com');
//=> false

isAbsoluteUrl('foo/bar');
//=> false

See is-relative-url for the inverse.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.