url-parser

WebJar for url-parser

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

org.webjars.bowergithub.advanced-rest-client
Идентификатор

Идентификатор

url-parser
Последняя версия

Последняя версия

2.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

url-parser
WebJar for url-parser
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать url-parser

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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)

Версии библиотеки

Версия
2.0.1