UNPKG

og-images-generator

Version:

Generate OG images from a static folder and / or a middleware. Extract metadata from HTML pages. No headless browser involved. Comes as a CLI, API or plugins.

16 lines (13 loc) 318 B
import { generateOgImages } from '../generate.js'; /** * @param {import("../collect").PathsOptions} [options] * @returns {import('rollup').Plugin} */ export function rollupOgImagesGenerator(options) { return { name: 'og-images-generator', async closeBundle() { await generateOgImages(options); }, }; }