Puppeteer sample cli

  • caputure
# url and capture image path option 
node src/capture.js --url=https://google.co.jp --path=capture/google.png

# switch device (pc / sp)
node src/capture.js --device=pc

Refference

https://pptr.dev/