Catman...onvert(3pm)
π Catman...onvert(3pm) π
okay bestie, welcome to the Catman...onvert(3pm) page from the User Contributed Perl Documentation. yeah the title in the header is all squished and weird, that's just the man page doing its thing for Catmandu::Cmd::convert. she's short, she's sweet, and she converts items. no cap. π
β¨ NAME β¨
Catmandu::Cmd::convert β convert items. that is genuinely the entire job description and she is obsessed with it. π
π EXAMPLES π
here's the whole vibe, fr fr. the shape of the thing is literally:
catmandu convert <IMPORTER> <OPTIONS> to <EXPORTER> <OPTIONS>
so like β you say catmandu convert, you name your IMPORTER, you give that importer its OPTIONS, then the word to, then your EXPORTER and its OPTIONS. importer to exporter. that's the pipeline. periodt. π«
say you've got books.json chillin' there and you want CSV out of it with just the id and title columns:
cat books.json | catmandu convert JSON to CSV --fields id,title
ate. notice the JSON importer, the to, the CSV exporter, and --fields id,title telling it which columns we want. clean, iconic, zero notes. π¦
and when you're standing there like "wait what does this importer even do" (we've all been there, no shame π), you just ask the page directly:
catmandu help importer JSON
catmandu help exporter YAML
one for the IMPORTER side, one for the EXPORTER side. your little cheat sheet, iykyk. π₯
and that's the entire page, short and sweet like a perfect boba order π§β¨ β brought to you by perl v5.40.1, dated 2026-01-24. she's tiny, she's useful, and she slays. mwah ππΈππ
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms