Skip to content

A Node.js-based command-line tool for seamless file format conversions. Supports images (JPEG, PNG, WebP), text files (CSV, JSON), and archives (ZIP). Lightweight and easy-to-use utility for developers and data analysts.

License

Notifications You must be signed in to change notification settings

LF3551/Easy-File-Format-Conversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy File Format Conversion

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.

Features

  • 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.

Installation

Prerequisites

  • 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

Usage

Commands

Convert Image

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

Convert Text File

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

Compress Folder

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

Decompress Archive

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

License

This project is licensed under the Universal Permissive License (UPL), Version 1.0.

About

A Node.js-based command-line tool for seamless file format conversions. Supports images (JPEG, PNG, WebP), text files (CSV, JSON), and archives (ZIP). Lightweight and easy-to-use utility for developers and data analysts.

Topics

Resources

License

Stars

Watchers

Forks