html-metadata-parser
Version:
Html Metadata scraper and parser for Node.js
19 lines (18 loc) • 499 B
TypeScript
import { AxiosRequestConfig } from "axios";
interface Meta {
title?: string;
description?: string;
image?: string;
url?: string;
type?: string;
site_name?: string;
}
export declare class Metadata {
meta: Meta;
og: Meta;
images?: string[];
}
declare const parse: (url: string, config?: AxiosRequestConfig) => Promise<Metadata>;
declare const parser: (url: string, config?: AxiosRequestConfig) => Promise<Metadata>;
export default parser;
export { parse, parser };