https://github.com/mcnuttandrew/no-grammar-supplement
Tip revision: 57d704e8ca05108db3526b7181d70fa33add3519 authored by Cameron Yick on 13 December 2023, 03:03:53 UTC
fix(docs): Update typos in public copy (#10)
fix(docs): Update typos in public copy (#10)
Tip revision: 57d704e
generate-table.ts
import puppeteer from 'puppeteer';
import fs from 'fs/promises';
async function main() {
const browser = await puppeteer.launch({headless: true});
const page = await browser.newPage();
await page.goto('http://localhost:5000/#/summary-table');
await page.waitForSelector('#table');
const table = await page.$('#table');
if (table) {
await table.screenshot({path: 'generated-table.png'});
}
await browser.close();
}
main();