Using this This Repo you will be able to use imagemin package to optimize your images with ease.
Folder named images will be in the root of this porject which should contain all the images that will be optimized.
This Folder will be generated automatically when running the Node file using this Command Line
node index.mjs
Name of the file which contains the Image Optimization code.