CLI tool for converting OpenXML spreadsheet documents to Pandoc's markdown grid tables.
npm install xlsx2md-cliThe command line tool supports the conversion from OpenXML spreadsheet documents to Pandoc's markdown grid tables.
``text
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
-n, --table-name
-s, --sheet-name
-w, --line-width
-r, --use-raw-string Do not escape strings in cells.
-t, --trim-rows
-l, --locale
-h, --help display help for command
`
Converts the first sheet in the workbook.
`shell`
xlsx2md -v -o ./tests/output.md ./tests/sample.xlsx
Converts the sheet named "Sheet1" in the workbook.
`shell``
xlsx2md -v -o ./tests/output.md -s "Sheet1" -- ./tests/sample.xlsx