UNPKG

glancify

Version:

Get title, description and image from a URL for link preview purposes

12 lines (11 loc) 420 B
export interface GlancifyPreview { title: string | null; description: string | null; image: string | null; } /** * Extracts metadata (title, description, image) from a given public URL. * @param url The URL of the page to analyze. * @returns An object containing the extracted metadata, or null values if not found. */ export declare const glancify: (url: string) => Promise<GlancifyPreview>;