{"id":20009484,"url":"https://github.com/librecat/catmandu-exporter-table","last_synced_at":"2026-06-10T09:31:16.541Z","repository":{"id":56838871,"uuid":"20841030","full_name":"LibreCat/Catmandu-Exporter-Table","owner":"LibreCat","description":"ASCII/Markdown table exporter for Catmandu","archived":false,"fork":false,"pushed_at":"2015-07-06T07:50:39.000Z","size":200,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T14:36:18.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Catmandu::Exporter::Table","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LibreCat.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-14T20:15:55.000Z","updated_at":"2015-07-02T09:14:19.000Z","dependencies_parsed_at":"2022-08-29T02:41:44.920Z","dependency_job_id":null,"html_url":"https://github.com/LibreCat/Catmandu-Exporter-Table","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LibreCat%2FCatmandu-Exporter-Table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LibreCat%2FCatmandu-Exporter-Table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LibreCat%2FCatmandu-Exporter-Table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LibreCat%2FCatmandu-Exporter-Table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LibreCat","download_url":"https://codeload.github.com/LibreCat/Catmandu-Exporter-Table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241447523,"owners_count":19964314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T07:16:09.809Z","updated_at":"2025-12-12T02:48:08.064Z","avatar_url":"https://github.com/LibreCat.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nCatmandu::Exporter::Table - ASCII/Markdown table exporter\n\n# STATUS\n\n[![Build Status](https://travis-ci.org/LibreCat/Catmandu-Exporter-Table.png)](https://travis-ci.org/LibreCat/Catmandu-Exporter-Table)\n[![Coverage Status](https://coveralls.io/repos/LibreCat/Catmandu-Exporter-Table/badge.png)](https://coveralls.io/r/LibreCat/Catmandu-Exporter-Table)\n[![Kwalitee Score](http://cpants.cpanauthors.org/dist/Catmandu-Exporter-Table.png)](http://cpants.cpanauthors.org/dist/Catmandu-Exporter-Table)\n\n# SYNOPSIS\n\nWith [catmandu](https://metacpan.org/pod/catmandu) command line client:\n\n    echo '{\"one\":\"my\",\"two\":\"table\"} {\"one\":\"is\",\"two\":\"nice\"}' | \\ \n    catmandu convert JSON --multiline 1 to Table\n    | one | two   |\n    |-----|-------|\n    | my  | table |\n    | is  | nice  |\n\n    catmandu convert CSV to Table --fields id,name --columns ID,Name \u003c sample.csv\n    | ID | Name |\n    |----|------|\n    | 23 | foo  |\n    | 42 | bar  |\n    | 99 | doz  |\n\nIn Perl scripts:\n\n    use Catmandu::Exporter::Table;\n    my $exp = Catmandu::Exporter::Table-\u003enew;\n    $exp-\u003eadd({ title =\u003e \"The Hobbit\", author =\u003e \"Tolkien\" });\n    $exp-\u003eadd({ title =\u003e \"Where the Wild Things Are\", author =\u003e \"Sendak\" });\n    $exp-\u003eadd({ title =\u003e \"One Thousand and One Nights\" });\n    $exp-\u003ecommit;\n\n    | author  | title                       |\n    |---------|-----------------------------|\n    | Tolkien | The Hobbit                  |\n    | Sendak  | Where the Wild Things Are   |\n    |         | One Thousand and One Nights |\n\n# DESCRIPTION\n\nThis [Catmandu::Exporter](https://metacpan.org/pod/Catmandu::Exporter) exports data in tabular form, formatted in\nMultiMarkdown syntax.\n\nThe output can be used for simple display, for instance to preview Excel files\non the command line. Use [Pandoc](http://johnmacfarlane.net/pandoc/) too\nfurther convert to other table formats, e.g. `latex`, `html5`, `mediawiki`:\n\n    catmandu convert XLS to Table \u003c sheet.xls | pandoc -t html5\n\nBy default columns are sorted alphabetically by field name.\n\n# CONFIGURATION\n\n- file\n- fh\n- encoding\n- fix\n\n    Standard options of [Catmandu:Exporter](Catmandu:Exporter)\n\n- condense\n\n    Write table in condense format with unaligned columns.\n\n- fields\n\n    Field names as comma-separated list or array reference.\n\n- columns\n\n    Column names as comma-separated list or array reference. By default field\n    names are used as column names.\n\n- header\n\n    Include header lines. Enabled by default.\n\n- widths\n\n    Column widths as comma-separated list or array references. Calculated from all\n    rows by default. Long cell values can get truncated with this option.\n\n- schema\n\n    Supply fields and (optionally) columns in a [JSON Table\n    Schema](http://dataprotocols.org/json-table-schema/) as JSON file or hash\n    reference having the following structure:\n\n        {\n          \"fields: [\n            { \"name\": \"field-name-1\", \"title\": \"column title 1 (optional)\" },\n            { \"name\": \"field-name-2\", \"title\": \"column title 2 (optional)\" },\n            ...\n          ]\n        }\n\n# METHODS\n\nSee [Catmandu::Exporter](https://metacpan.org/pod/Catmandu::Exporter) \n\n# SEE ALSO\n\nThis module is based on [Text::MarkdownTable](https://metacpan.org/pod/Text::MarkdownTable).\n\nSimilar Catmandu Exporters for tabular data include\n[Catmandu::Exporter::CSV](https://metacpan.org/pod/Catmandu::Exporter::CSV), [Catmandu::Exporter::XLS](https://metacpan.org/pod/Catmandu::Exporter::XLS), and\n[Catmandu::Exporter::XLSX](https://metacpan.org/pod/Catmandu::Exporter::XLSX).\n\n# COPYRIGHT AND LICENSE\n\nCopyright Jakob Voss, 2014-\n\nThis is free software; you can redistribute it and/or modify it under the same\nterms as the Perl 5 programming language system itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrecat%2Fcatmandu-exporter-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibrecat%2Fcatmandu-exporter-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrecat%2Fcatmandu-exporter-table/lists"}