UNPKG

open-graph-scraper

Version:

Node.js scraper module for Open Graph and Twitter Card info

20 lines (19 loc) 566 B
import type { OpenGraphScraperOptions } from './types'; /** * sets up options for the fetch request and calls extract on html * * @param {object} options - options for ogs * @return {object} object with ogs results * */ export default function setOptionsAndReturnOpenGraphResults(ogsOptions: OpenGraphScraperOptions): Promise<{ ogObject: import("./types").OgObjectInternal; response: { body: string; }; html: string; } | { ogObject: import("./types").OgObjectInternal; response: import("undici").Response; html: string; }>;