i need to compress all types of files using React js Please help Currently there is Compressor.js for image compression but i need CSV Excel files also to be compressed
CodePudding user response:
You can use zlib to compress files.
To install zlib use: npm install zlib
Refer the documentation here.
CodePudding user response:
You can use fflate, it has the best compression time and lowest minified bundle size.
check out the docs here: https://www.npmjs.com/package/fflate.
Npm install command: npm i fflate