congenial-waddle is brotli and gzip compression utils library for nodejs
To use the application you need to pass the folder path where the files are stored as an argument to the application.
import compress from "@imdevesh/congenial-waddle";
// Pass the folder path where the files are stored for compression
var folderPath = "./html";
compress.getCompressed(folderPath);
After the compression is done, the compressed files are stored in respective folders, name ./br/*
and ./gzip/*.
*Note: There is no limitation on type of files, you can use this tool for .html, .css, .js, .png, .jpg, .jpeg, .pdf and many more.
Package Url : @SeptBlast/congenial-waddle