Generate and download screenshots of a website using Browserstack's API.
First, create an .env file with Browserstack API credentials
USERNAME=user
PASSWORD=passwordRun the script using
node index.jsImages are downloaded to <working directory>/<job id>.