1.0.3 • Published 9 months ago
@elrond25/image-processor v1.0.3
README
This is meant as a replacement for the Squoosh CLI application that is no longer available.
This app will:
- Use Node.js built-in modules: fs, path, process, and fs/promises
- Accept user input via command-line arguments
- Support the following CLI options:
- Convert a single file to all available formats
- Convert a single file to a specified format
- Convert all files in a directory to all formats
- Convert all files in a directory to a specified format
Usage 🚀
Convert a single file to all formats:
node index.mjs image.png allConvert a single file to a specific format:
node index.mjs image.png jpegConvert all files in a directory to all formats:
node index.mjs ./images allConvert all files in a directory to a specific format:
node index.mjs ./images webp