Skip to content

Commit

Permalink
1.14 - dded dye functions for coloring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timofey Potapov committed May 23, 2024
1 parent 2a00fb7 commit 133c767
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ Data dumper.

Internal data dumper.

## dye

Color a string.

say dye( "HEY", "RED" );

## g

Perform a get request.
Expand Down
14 changes: 13 additions & 1 deletion lib/e.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use 5.006;
use strict;
use warnings;

our $VERSION = '1.13';
our $VERSION = '1.14';

=head1 SYNOPSIS
Expand Down Expand Up @@ -193,6 +193,12 @@ Data dumper.
Internal data dumper.
=head2 dye
Color a string.
say dye( "HEY", "RED" );
=head2 g
Perform a get request.
Expand Down Expand Up @@ -368,6 +374,12 @@ sub import {
Devel::Peek::Dump( @_ );
},

# Color.
dye => sub {
require Term::ANSIColor;
Term::ANSIColor::colored( @_ );
},

######################################
# Web Related
######################################
Expand Down

0 comments on commit 133c767

Please sign in to comment.