I don't know but, couldn't parse URI, so i made it.
const uri = "https://example.com/script/type?key=value&type=script";
const parse = UriParser(uri);
console.log(parse)
///////////////////////////////////////////////////////////
//
// Uri {
// host: "example.com",
// protocol: "https",
// path: "/script/type",
// queryString: { key: "value", type: "script" }
// }
- protocol
- host
- path
- queryString
If you find something interesting, please contact me