2 unstable releases
0.2.0 | Jun 28, 2024 |
---|---|
0.1.0 | Jun 28, 2024 |
#2518 in Parser implementations
34 downloads per month
19KB
420 lines
ligotab
Tables in a few formats
ligotab is library and command line tool for formatting delimiter-separated values (CSV, etc.) as lightweight markup tables in a few formats. So far, basic Markdown, Confluence Wiki Markup, Org, and reStructuredText tables are supported (grid syntax only for rst). The command line tool, lt
, can read from standard input or from a single file.
ligotab is an experimental work in progress.
Command Line Usage
Format delimited data with lightweight markup
Usage: lt [OPTIONS] [PATH]
Arguments:
[PATH] Path to delimiter-separated value file [default: -]
Options:
-d, --delimiter <DELIMITER> Set the delimiter character. Expand escape characters in the shell, e.g., `$'\t'` [default: ,]
-t, --terminator <TERMINATOR> (Optional) Set the record terminator character
-c, --comment-char <COMMENT_CHAR> (Optional) Set the file commenting character
-q, --quoting Disable quoting when reading file
-u, --quote-char <QUOTE_CHAR> Set the quoting character [default: "]
-b, --double-quote Disable interpreting double quote as escape
-o, --output-format <OUTPUT_FORMAT> Set the output format for the table [default: markdown]
-h, --help Print help
-V, --version Print version
Dependencies
~2.3–3MB
~49K SLoC