puppeteer-prerenderer

December 8, 2017 ยท View on GitHub

Usees puppeteer to get the html of a page and save it to a file (or optionally output it to the console)

parameterdescriptionrequiredexample
-u, --urlThe url you want to rendertrue--url="http://www.google.com"
-o, --outputThe ouput pathtrue--output="./test.html"
-t, --timeThe amount of time (in milliseconds) to wait before renderingfalse--time=1000
-e, --elementcss selector to wait for before renderingfalse--element="#q"
-m, --minifyif flag is passed will minify html (and inline js/css)false--minify