Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/haydn/harvester. A tool to display lists of content scraped from the web. harvester.particlesystem.com
Something went wrong. Try again.
1234567891011import { JSDOM, VirtualConsole } from "jsdom";
export const createDOM = async (html: string, url: string) => { const virtualConsole = new VirtualConsole(); try { return new JSDOM(html, { url, virtualConsole }); } catch { return null; }};