async function createWebVttAndSpriteImage(channelUrl, uploadUniqueTag, uploadFilePath){

  /** input and output paths **/
  // used in the paths, could use different names if you want
  const filename = uploadUniqueTag

  // the file to create sprite and vtt from
  const inputFile = uploadFilePath;

  const spriteFileName = `${uploadUniqueTag}_sprite.png`;
  const vttFileName = `${uploadUniqueTag}_sprite.vtt`;

  const prependPath = `/uploads/${channelUrl}`

  // where to output the files
  const spriteOutputFilePath = `./uploads/${channelUrl}/${spriteFileName}`;
  const webVTTOutputFilePath = `./uploads/${channelUrl}/${vttFileName}`;

  const pathToGenerator = './node_modules/generate-video-sprites-node/generator'

  await createSpriteWithVTT({
    pathToGenerator,
    inputFile,
    intervalInSecondsAsInteger,
    widthInPixels, heightInPixels, columns,
    spriteOutputFilePath,
    webVTTOutputFilePath,
    prependPath,
    filename,
    spriteFileName
  })

  console.log('DONE CREATING SPRITE IMAGE AND WEBVTT!');
}
variables to setup the output of the sprite/vtt *