UNPKG

linkinator

Version:

Find broken links, missing images, etc in your HTML. Scurry around your site and find all those broken links.

11 lines (10 loc) 389 B
import { Readable } from 'node:stream'; export type ParsedSitemap = { type: 'index' | 'urlset'; locations: string[]; }; export declare class SitemapXmlError extends Error { constructor(message: string, options?: ErrorOptions); } /** Parse a sitemap URL set or sitemap index from an XML stream. */ export declare function parseSitemap(source: Readable): Promise<ParsedSitemap>;