{"id":19308643,"url":"https://github.com/anthonyaxenov/csv2md","last_synced_at":"2025-09-11T18:33:00.750Z","repository":{"id":43691057,"uuid":"459943037","full_name":"anthonyaxenov/csv2md","owner":"anthonyaxenov","description":"!!! Moved to https://git.axenov.dev/anthony/csv2md !!! Stupidly simple tool to convert csv/tsv to markdown table.","archived":true,"fork":false,"pushed_at":"2024-02-05T15:13:01.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T05:03:48.858Z","etag":null,"topics":["converter","csv","golang","linux","macos","markdown","md","windows"],"latest_commit_sha":null,"homepage":"https://git.axenov.dev/anthony/csv2md","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonyaxenov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-16T09:51:14.000Z","updated_at":"2025-02-21T04:09:15.000Z","dependencies_parsed_at":"2024-06-20T01:38:17.614Z","dependency_job_id":null,"html_url":"https://github.com/anthonyaxenov/csv2md","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/anthonyaxenov/csv2md","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyaxenov%2Fcsv2md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyaxenov%2Fcsv2md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyaxenov%2Fcsv2md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyaxenov%2Fcsv2md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonyaxenov","download_url":"https://codeload.github.com/anthonyaxenov/csv2md/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyaxenov%2Fcsv2md/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274684975,"owners_count":25330895,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["converter","csv","golang","linux","macos","markdown","md","windows"],"created_at":"2024-11-10T00:15:46.915Z","updated_at":"2025-09-11T18:33:00.509Z","avatar_url":"https://github.com/anthonyaxenov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csv2md\n\nStupidly simple tool to convert csv/tsv to [markdown](https://spec-md.com/) table.\n\nPrints result in stdout.\n\n```\nUsage:\n    csv2md [-help|--help] [-f=\u003cFILE\u003e] [-h=\u003cHEADER\u003e] [-t] [-a]\n\nAvailable arguments:\n    -help|--help   - show this help\n    -f=\u003cFILE\u003e      - convert specified FILE\n    -h=\u003cHEADER\u003e    - add main header (h1) to result\n    -t             - convert input as tsv\n    -a             - align columns width\n\nFILE formats supported:\n    - csv (default)\n    - tsv (with -t flag)\n\nPath to FILE may be presented as:\n    - absolute\n    - relative to current working directory\n    - relative to user home directory (~)\n\nBoth HEADER and FILE path with whitespaces must be double-quoted.\nTo save result as separate file you should use redirection operators (\u003e or \u003e\u003e).\n```\n\n**IMPORTANT:**\n1. Input data must be valid csv/tsv\n2. Whitespaces allowed only between double-quotes\n3. Due to markdown spec first line of result table will always be presented as header.  \n   So if your raw data hasn't one you'll should add it before conversion or edit later in ready md.\n\n## Examples\n\n```\ncsv2md                                - paste or type csv to stdin and then\n                                        press Ctrl+D to view result in stdout\ncsv2md -t \u003e example.md                - paste or type tsv to stdin and then\n                                        press Ctrl+D to write result in new file\ncsv2md -f example.csv                 - convert csv from file and view result in stdout\ncsv2md -t \u003c example.tsv               - convert tsv from stdin and view result in stdout\ncsv2md -t \u003c example.tsv \u003e example.md  - convert tsv from stdin and write result in new file\ncat example.csv | csv2md              - convert csv from stdin and view result in stdout\ncsv2md -t -f=example.tsv \u003e example.md - convert tsv from file and write result in new file\ncsv2md -f example.csv | less          - convert csv from file and view result in stdout using pager\ncsv2md -f example.csv | code -n -     - convert csv from file and open result in vscode\n\n...anything is possible with redirection and piping, inc. grep, sed, awk, etc.\n```\n\nYou can generate some examples here: [csv](https://onlinerandomtools.com/generate-random-csv), [tsv](https://onlinerandomtools.com/generate-random-tsv)\n\n## Compilation\n\n1) [Install go](https://go.dev/learn/).\n2) Download this repo via zip or `git clone`.\n3) Run `make help` to get help about compilation or `go run . [ARGS...]` to build and run temporary binary.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyaxenov%2Fcsv2md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonyaxenov%2Fcsv2md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyaxenov%2Fcsv2md/lists"}