UNPKG

open-graph-scraper-edge

Version:

Node.js scraper module for Open Graph and Twitter Card info - refactored for Edge environments

11 lines (10 loc) 384 B
import type { OgObjectInteral, OpenGraphScraperOptions } from './types'; /** * extract all of the meta tags needed for ogs * * @param {sting} body - the body of the fetch request * @param {object} options - options for ogs * @return {object} object with ogs results * */ export default function extractMetaTags(body: string, options: OpenGraphScraperOptions): OgObjectInteral;