YAML::Tidy - Tidy YAML files
% cat in.yaml a: b: c: d % yamltidy in.yaml a: b: c: d
For documentation see https://github.com/perlpunk/yamltidy
yamltidy can automatically tidy formatting in your YAML files, for example adjust indentation and remove trailing spaces.
For more information, see https://github.com/perlpunk/yamltidy.
new
my $yt = YAML::Tidy->new;
tidy
my $outyaml = $yt->tidy($inyaml);
highlight
my $ansicolored = $yt->highlight($yaml, 'ansi'); my $html = $yt->highlight($yaml, 'html');
cfg
my $cfg = $yt->cfg;
Return YAML::Tidy::Config
Tina Müller <tinita@cpan.org>
Copyright 2020 by Tina Müller
This library is free software and may be distributed under the same terms as perl itself.
To install YAML::Tidy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YAML::Tidy
CPAN shell
perl -MCPAN -e shell install YAML::Tidy
For more information on module installation, please visit the detailed CPAN module installation guide.