url-reader
Version:
Convert your URLs to JSON/Markdown/Text format.
20 lines (19 loc) • 403 B
TypeScript
export interface IOptions {
urls: string[];
enableMarkdown?: boolean;
runScripts?: 'dangerously' | 'outside-only';
timeout?: number;
}
export interface IReaderResult {
title: string;
length: number;
html: string;
text: string;
markdown?: string;
excerpt: string;
}
export interface IRequestOptions {
url?: string;
urls?: string[];
timeout?: number;
}