Easy File Format Conversion is a versatile and lightweight Node.js script for converting and managing files. It supports converting images, text files, and handling archives with ease. This tool is perfect for developers and data analysts looking for command-line utilities.
- Image Conversion: Convert images between formats like JPEG, PNG, and WebP.
- Text File Transformation: Convert between CSV and JSON formats.
- Archive Management: Compress folders into ZIP archives and extract ZIP files.
- Lightweight and Fast: Built with Node.js for seamless file handling.
- Node.js installed on your system. Download Node.js
- Required npm packages: Install them by running the following:
npm install
### Clone the repository:
```bash
git clone https://github.com/LF3551/Easy-File-Format-Conversion.git
cd Easy-File-Format-Conversion
Converts images between formats like JPEG, PNG, and WebP.
node app.js convert-image --input=<input-file> --output=<output-file>
Example:
node app.js convert-image --input=test.jpg --output=output.png
Converts between CSV and JSON formats.
node app.js convert-text --input=<input-file> --output=<output-file>
Examples: CSV → JSON:
node app.js convert-text --input=data.csv --output=data.json
JSON → CSV:
node app.js convert-text --input=test.json --output=output.csv
Compresses a folder into a ZIP archive.
node app.js compress --input=<input-folder> --output=<output-archive>
Example:
node app.js compress --input=data --output=data.zip
Extracts a ZIP archive into a folder.
node app.js decompress --input=<input-archive> --output=<output-folder>
Example:
node app.js decompress --input=data.zip --output=data
This project is licensed under the Universal Permissive License (UPL), Version 1.0.