url-parser

WebJar for url-parser

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.webjars.bowergithub.advanced-rest-client
ArtifactId

ArtifactId

url-parser
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

url-parser
WebJar for url-parser
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/advanced-rest-client/url-parser

Download url-parser

How to add to project

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

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.

Build Status

A URL parsing library for Advanced REST Client.

It provides an interface similar to the URL class but it is more relax in terms of input validitiy. It means that it won't throw an error when the URL is invalid. This allows to use the library in request editors.

Usage

Installation

npm install --save @advanced-rest-client/url-parser

Example

import { UrlParser } from '@advanced-rest-client/url-parser';
const parser = new UrlParser('https:///path-with-missing-host?qury=value#string');
console.log(parser.protocol);
console.log(parser.host);
console.log(parser.path);
console.log(parser.searchParams);
console.log(parser.anchor);

Development

git clone https://github.com/advanced-rest-client/url-parser
cd url-parser
npm install

Running the tests

npm test
org.webjars.bowergithub.advanced-rest-client

ARC

A set of repositories related to the Advanced REST Client and API console (by Mulesoft)

Versions

Version
2.0.1