csv2md

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 7 Imported by: 0

README

csv2md

Convert CSV files to Markdown tables.

Installation

go install github.com/adrianhredhe/csv2md@latest

Usage

# From file
csv2md input.csv -o output.md

# From stdin
cat data.csv | csv2md

# Using flags
csv2md -i input.csv -o output.md

Examples

input.csv

col1, col2, really_long_col3
1,long entry, true
2,shorter, false

output.md

| col1 |       col2 |  really_long_col3 |
|------|------------|-------------------|
|    1 | long entry |              true |
|    2 |    shorter |             false |

Repo structure

.
├── .gignore
├── .github
│   └── workflows
│       └── release.yml  # Automated release on version tags
├── .goreleaser.yml      # Multi-platform build configuration
├── go.mod               # Module definition (no external deps)
├── main.go              # csv2md CLI implementation
├── main_test.go         # unit tests for cli implementation
├── LICENCE
└── README.md

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL