1.0.3 • Published 10 months ago

@nodifier/url-parser v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

@nodifier/url-parser

A node module to parse url string into object of url components

How to use?

import { parseUrl } from "@nodify/url-parser";

const urlComponents = parseUrl("https://mytestdomain.com/sample/read?book=1");

Output

{
  "host": "mytestdomain.com",
  "protocol": "https",
  "path": "/sample/read",
  "queryString": "book"
}

Return Types

host: string;
path: string;
port: string;
protocol: string;
username: string;
password: string;
1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.1-beta.0

10 months ago