UNPKG

@renyuneyun/parse-link-header-ts

Version:

Parses a link header and returns information for each contained link.

11 lines (10 loc) 243 B
interface RawLink { url: string; [key: string]: string; } interface Link extends RawLink { rel: string; } export type Result = Record<string, Link[]>; export default function (linkHeader: string, base?: string): Result; export {};