Giter VIP home page Giter VIP logo

diffr's Introduction

Diffr - Simplifying Directory and File Content Comparison

GitHub Workflow GitHub stars GitHub Release

Diffr is an open-source web-based tool designed to make comparing content differences between two directories, and even files, a simple and intuitive process. Whether you're a developer comparing source code, a designer comparing image assets, or anyone dealing with files, Diffr provides a user-friendly interface to quickly identify changes and similarities between directories and files.

Visit the project on GitHub: https://github.com/imrajdas/diffr

Table of Contents

Installation

Diffr is designed to be cross-platform and should work on various operating systems, including:

  • Linux
  • macOS
  • Windows

Download the latest release for your operating system from here- https://github.com/imrajdas/diffr/releases

Linux/MacOS

  • Extract the binary
tar -zxvf diffr-<OS>-<ARCH>-<VERSION>.tar.gz
  • Provide necessary permissions
chmod +x diffr
  • Move the diffr binary to /usr/local/bin/diffr
sudo mv diffr /usr/local/bin/diffr
  • Run Diffr on Linux/MacOS:
diffr [dir1/file1] [dir2/file2] [flags]

Windows

  • Extract the Binary from the Zip Archive

  • Check the Diffr Version

diffr.exe <command> <subcommand> <subcommand> [options and parameters]
  • To check the version of the diffr:
diffr version

Build

To use Diffr, you need to have Go installed on your system. Once you have Go set up, you can install Diffr using the following command:

git clone https://github.com/imrajdas/diffr
go get -v
go build main.go -o diffr

./diffr --help

Usage

Diffr simplifies the process of comparing content differences between two directories or files. The basic usage is as follows:

diffr [dir1/file1] [dir2/file2] [flags]

You can also use the command to access specific features:

diffr [command]

Commands

Diffr supports the following commands:

  • help: Displays help information about any command.
  • version: Displays the version of Diffr.

Flags

Diffr provides the following flags to customize its behavior:

  • -a, --address string: Set the address for the web server to listen on. The default is http://localhost.
  • -h, --help: Display help information about Diffr.
  • -p, --port int: Set the port for the web server to listen on. The default is 8675.

Examples

Here are some examples of how to use Diffr:

# Compare contents of two directories
diffr /path/to/dir1 /path/to/dir2

# Compare contents of two files
diffr /path/to/file1 /path/to/file2

# Compare contents with custom server address and port
diffr /path/to/dir1 /path/to/dir2 -a http://127.0.0.1 -p 9000

Contributing

Contributions to Diffr are welcomed and encouraged! If you find a bug or have a feature request, please open an issue on the GitHub repository. If you'd like to contribute code, feel free to fork the repository and submit a pull request.

License

Diffr is released under the Apache. You are free to use, modify, and distribute this software in accordance with the terms of the license.


Diffr makes directory and file content comparison hassle-free, allowing you to focus on identifying differences rather than dealing with complex tools. Give it a try, and make directory and file comparison a breeze!

diffr's People

Contributors

imrajdas avatar

Stargazers

 avatar  avatar

Watchers

 avatar

diffr's Issues

Add support for PDF and image comparison

  • Integrated the capability to compare PDF files. Users can now upload two PDF files, and the tool highlights the textual and structural differences between them within the browser interface.

  • Added the ability to compare image files, allowing users to view pixel-level differences side by side. This feature is particularly valuable for designers, photographers, and visual content creators.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.