UNPKG

got

Version:

Human-friendly and powerful HTTP request library for Node.js

15 lines (14 loc) 385 B
import type { UrlWithStringQuery } from 'node:url'; export type LegacyUrlOptions = { protocol: string; hostname: string; host: string; hash: string | null; search: string | null; pathname: string; href: string; path: string; port?: number; auth?: string; }; export default function urlToOptions(url: URL | UrlWithStringQuery): LegacyUrlOptions;