@wireapp/open-graph
v1.1.0
Published
Open Graph metadata parser and utilities for Wire web applications.
Readme
@wireapp/open-graph
Open Graph metadata parser. Fork of node-open-graph.
Usage
import {getOpenGraphData, openGraph} from '@wireapp/open-graph';
const metadata = await getOpenGraphData('https://example.com');
const parsed = openGraph('<meta property="og:title" content="Example">');Only https URLs are fetched. Hosts resolving to private or reserved addresses are rejected, redirects are revalidated, and responses are limited to text/html, 1 MB and 10 seconds.
