App-JYJ
view release on metacpan or search on metacpan
$ cat file.json | jyj # YAML
$ cat file.json | jyj | jyj # JSON
$ cat file.json | jyj | jyj |jyj # YAML
Description
This module installs a command-line tool called jyj.
It reads stdin.
If it looks like JSON, it prints the YAML dump of the JSON decoding.
If it looks like YAML, it prints the JSON encoding of the YAML load.
That's it.
Author
Ingy döt Net ingy@cpan.org <mailto:ingy@cpan.org>
Copyright and License
Copyright 2022. Ingy döt Net.
lib/App/JYJ.pod view on Meta::CPAN
$ cat file.json | jyj # YAML
$ cat file.json | jyj | jyj # JSON
$ cat file.json | jyj | jyj |jyj # YAML
=head2 Description
This module installs a command-line tool called C<jyj>.
It reads stdin.
If it looks like JSON, it prints the YAML dump of the JSON decoding.
If it looks like YAML, it prints the JSON encoding of the YAML load.
That's it.
=head2 Author
Ingy döt Net L<ingy@cpan.org|mailto:ingy@cpan.org>
=head2 Copyright and License
Copyright 2022. Ingy döt Net.
( run in 0.587 second using v1.01-cache-2.11-cpan-64827b87656 )