7 ms·
Pretty cool! Check out Google's headless browser API Puppeteer too, they provide a few really useful functions for doing stuff like this. https://github.com/Go
by umpox 9y ago
Pretty cool! Check out Google's headless browser API Puppeteer too, they provide a few really useful functions for doing stuff like this.
https://github.com/GoogleChrome/puppeteer/blob/master/examples/pdf.js https://github.com/GoogleChrome/puppeteer/blob/master/exampl...
Really easy to work around, I used it to build a simple CLI to generate device screenshots of a webpage by modifying the user-agent and resolution to match each device.
https://github.com/umpox/generateDeviceScreenshots https://github.com/umpox/generateDeviceScreenshots
- esbenp 9y agoYeah I think Puppeteer is a very cool project. Unfortunately, it came out literally one or two days after i finished the initial version of pdf-bot. Maybe I will incorporate it soon! :-)
- rememberlenny 9y agoCool project