How to easily convert HTML to image in NodeJS or in the browser

Ever thought about turning a piece of HTML into an image? Well, it’s totally possible. And even better, you can do it either on the server or right in the browser. To generate an image from HTML on the server, you'll need a library called Puppeteer. Puppeteer is a NodeJS library that lets you control Chrome or Chromium programmatically...