1 2 3 4 5
import type { URL } from "node:url"; export default function relUrl(url: URL) { return url.pathname + url.search + url.hash; }