linkinator
Version:
Find broken links, missing images, etc in your HTML. Scurry around your site and find all those broken links.
14 lines (13 loc) • 462 B
TypeScript
import http from 'node:http';
export type WebServerOptions = {
root: string;
port?: number;
markdown?: boolean;
directoryListing?: boolean;
};
/**
* Spin up a local HTTP server to serve static requests from disk
* @private
* @returns Promise that resolves with the instance of the HTTP server
*/
export declare function startWebServer(options: WebServerOptions): Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>;