NAME
YAML::Tidy - Tidy 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
For examples see https://perlpunk.github.io/yamltidy
DESCRIPTION
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.
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.