3.1.0 • Published 5 years ago
@advanced-rest-client/url-parser v3.1.0
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-parserExample
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 installRunning the tests
npm test3.1.0
5 years ago
3.0.1
6 years ago
3.0.0
6 years ago
3.0.0-preview.2
7 years ago
3.0.0-preview.1
7 years ago
2.0.0
8 years ago