open-graph-scraper
Version:
Node.js scraper module for Open Graph and Twitter Card info
11 lines (10 loc) • 386 B
TypeScript
import type { OgObjectInternal, 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): OgObjectInternal;