relativize-url.d.ts 289 B

123456
  1. /**
  2. * Given a URL as a string and a base URL it will make the URL relative
  3. * if the parsed protocol and host is the same as the one in the base
  4. * URL. Otherwise it returns the same URL string.
  5. */
  6. export declare function relativizeURL(url: string | string, base: string | URL): string;