Skip to content

Compress files or complete folder in brotli and gzip in a go without getting dependent over the file to file compression.

License

Notifications You must be signed in to change notification settings

SeptBlast/congenial-waddle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@SeptBlast/congenial-waddle

congenial-waddle is brotli and gzip compression utils library for nodejs

Helps in Compressing the whole project in a go without any hassle

To use the application you need to pass the folder path where the files are stored as an argument to the application.

Usage

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.

License

MIT License

Author

Imdevesh

Package Url : @SeptBlast/congenial-waddle