Skip to content

tokuhirom/Data-Difflet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Data::Difflet - Ultra special pretty cute diff generator Mark II

SYNOPSIS

use Data::Difflet;

my $difflet = Data::Difflet->new();
print $difflet->compare(
    {
        a => 2,
        c => 5,
    },
    {
        a => 3,
        b => 4,
    }
);

DESCRIPTION

THIS MODULE IS IN ITS BETA QUALITY. THE API MAY CHANGE IN THE FUTURE

Data::Difflet is colorful diff generator for Perl5!

See the following image!

METHODS

  • my $difflet = Data::Difflet->new();

    Create new instance of Data::Difflet object.

  • $difflet->compare($a, $b);

    Compare the two data and get a colorized strings.

ENVIRONMENT VARIABLES

  • DD_COLOR

    DD_COLOR is used as default color.

    Format of value is "TYPE=FG;BG:TYPE=FG;BG:...". "FG" and "BG" are optional.

    For example:

      export DD_COLOR='updated=yellow:inserted=;cyan:deleted=yellow;red'
    

AUTHOR

Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>

SEE ALSO

This module is inspired from node.js library named difflet. git://github.com/substack/difflet.git

LICENSE

Copyright (C) Tokuhiro Matsuno

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages