Puppeteer をインストールする

● Puppeteer

npm i puppeteer
vi example.js
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://example.com');
  await page.screenshot({path: 'example.png'});

  await browser.close();
})();
node example.js
No.1667
01/21 16:40

edit