UNPKG

@akira108sys/html-rewriter-readability

Version:

A library to extract readable content with Mozilla/Readability algorithm using Cloudflare HTMLRewriter.

14 lines (13 loc) 427 B
import type { ElementInfo } from './types'; interface ScoringOptions { debug: boolean; nbTopCandidates?: number; charThreshold?: number; allowedVideoRegex?: RegExp; linkDensityModifier?: number; } export declare function calculateScoresAndFindBestCandidate(elementStore: Map<number, ElementInfo>, options: ScoringOptions): { topCandidateId: number | null; elementsToKeepIds: number[]; }; export {};