xlsx2md-cli
v1.8.0
Published
CLI tool for converting OpenXML spreadsheet documents to Pandoc's markdown grid tables.
Downloads
11
Readme
xlsx2md-cli
The command line tool supports the conversion from OpenXML spreadsheet documents to Pandoc's markdown grid tables.
Usage
Usage: xlsx2md [options] [source]
CLI tool for converting OpenXML spreadsheet documents to Pandoc's markdown grid tables.
Arguments:
source Specify a file. If omitted, STDIN is used as the input source.
Options:
-V, --version output the version number
-v, --verbose Always write the result to STDOUT.
--list List sheet names.
-o, --output-path <FILE> Write the result to FILE. If omitted, the result is written to STDOUT.
-n, --table-name <NAME...> Specify one or more table names.
-s, --sheet-name <NAME...> Specify one or more sheets in the workbook by name. If omitted, the first sheet is used.
-w, --line-width <WIDTH> Specify the maximum characters per line.
-r, --use-raw-string Do not escape strings in cells.
-t, --trim-rows <RANGE...> Trim rows outside the range "start[,end]".
-l, --locale <LOCALE> Specify the localization.
-h, --help display help for command
Example
Converts the first sheet in the workbook.
xlsx2md -v -o ./tests/output.md ./tests/sample.xlsx
Converts the sheet named "Sheet1" in the workbook.
xlsx2md -v -o ./tests/output.md -s "Sheet1" -- ./tests/sample.xlsx