npm i images = pdf

const ImagesToPDF = require('images-pdf');new ImagesToPDF.ImagesToPDF().convertFolderToPDF('image/folder', 'output/file.pdf');
Victorious Vicuña