link-checker-cli
Version:
CLI tool to check for broken links in a website or project
19 lines (18 loc) • 725 B
TypeScript
import { Link, LinkCheckResult, LinkType } from "../types";
import { CheckLinkView, GetUrlsView } from '../views';
export declare class LinksProcessor {
private readonly pageIds;
private readonly uniqueLinks;
private readonly history;
private poolSize;
constructor(size: number);
getAllSitemapLinks: (link: string, view?: GetUrlsView) => Promise<Link[]>;
getAllLinks: (link: string, recursive: boolean, view?: GetUrlsView) => Promise<Link[]>;
checkAllLinks: (links: Link[], included: LinkType[], view?: CheckLinkView) => Promise<{
validCount: number;
brokenLinks: LinkCheckResult[];
excluded: number;
}>;
private checkLink;
private getLinksFromRobotsTxt;
}