@markitdownjs/cli
v0.1.2
Published
CLI tool for MarkItDownJS document conversion
Readme
@markitdownjs/cli
CLI tool for converting documents from the terminal. Part of MarkItDownJS.
Install
npm install -g @markitdownjs/cliCommands
convert — convert a single file
markitdownjs convert report.pdf --output report.md
markitdownjs convert data.json --format markdownbatch — convert all files in a directory
markitdownjs batch ./docs --output ./output --format markdownserve — start an HTTP conversion server
markitdownjs serve --port 3000watch — watch a directory and convert on change
markitdownjs watch ./inbox --output ./processedOptions
| Flag | Description |
|------|-------------|
| --output <path> | Output file or directory |
| --format <fmt> | Output format: markdown (default), json, text |
| --port <n> | Port for serve command (default: 3000) |
| --concurrency <n> | Parallel workers for batch (default: 4) |
| --verbose | Print per-file progress |
