Demos for using puppeteer library
- To take a screenshot - Example of Google Search engine
- To export a pdf of a particular web page(in case of this demo, homepage of this repository).
Assuming that node is installed on your local setup, fire the command node index.js in the root directory of this repository. This will start the node server at 5000 port.
Routing to '/screenshot' route will save a screenshot of the google search engine in your local repository. Routing to '/export-pdf' will export a pdf of the homepage(of this repository) at the root of your repository.