NAME

YAML::Tidy - Clean YAML files

SYNOPSIS

% cat in.yaml
a:
    b:
     c: d
% yamltidy in.yaml
a:
  b:
    c: d

For documentation see https://github.com/perlpunk/yamltidy

DESCRIPTION

yamltidy can automatically fix indentation in your YAML files.

For more information, see https://github.com/perlpunk/yamltidy.

METHODS

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

AUTHOR

Tina Müller <tinita@cpan.org>

SEE ALSO

yamllint https://yamllint.readthedocs.io/en/stable/
perltidy Perl::Tidy
YAML::LibYAML::API
https://github.com/yaml/libyaml
https://www.yaml.info/

COPYRIGHT AND LICENSE

Copyright 2020 by Tina Müller

This library is free software and may be distributed under the same terms as perl itself.