is-absolute-url

WebJar for is-absolute-url

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-absolute-url
Last Version

Last Version

3.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

is-absolute-url
WebJar for is-absolute-url
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/is-absolute-url

Download is-absolute-url

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-absolute-url/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-absolute-url</artifactId>
    <version>3.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-absolute-url/
implementation 'org.webjars.npm:is-absolute-url:3.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/is-absolute-url/
implementation ("org.webjars.npm:is-absolute-url:3.0.3")
'org.webjars.npm:is-absolute-url:jar:3.0.3'
<dependency org="org.webjars.npm" name="is-absolute-url" rev="3.0.3">
  <artifact name="is-absolute-url" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-absolute-url', version='3.0.3')
)
libraryDependencies += "org.webjars.npm" % "is-absolute-url" % "3.0.3"
[org.webjars.npm/is-absolute-url "3.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

is-absolute-url

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

Related

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.

Versions

Version
3.0.3
2.1.0