Skip to content

Instantly share code, notes, and snippets.

View maxigimenez's full-sized avatar
🤖

Maxi Gimenez maxigimenez

🤖
View GitHub Profile
module.exports.myFunction = () => {
console.log('external!')
}
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.setViewport({ width: 1280, height: 800 })
await page.goto('https://danube-webshop.herokuapp.com')
await page.screenshot({ path: 'external.png' })
await browser.close()
})()