Convert documents between formats. PDF to Markdown, DOCX to HTML, TXT extraction. Zero-config CLI tool.
npm install @lxgicstudios/docvertConvert documents between formats. PDF, DOCX, HTML, Markdown, TXT. Zero-config CLI tool.
``bash`
npm install -g @lxgicstudios/docvert
Or use directly with npx:
`bash`
npx @lxgicstudios/docvert document.docx
`bashBasic conversion (auto-detects output format)
docvert document.docx # โ document.md
Supported Formats
| Input | Output |
|-------|--------|
| .docx | .md, .html, .txt |
| .pdf | .md, .html, .txt |
| .html | .md, .txt |
| .md | .html, .txt |
| .txt | .md, .html |
Options
| Option | Description |
|--------|-------------|
|
-o, --output | Output file path |
| -t, --to | Target format: md, html, txt |
| -v, --verbose | Show detailed output |
| -h, --help | Show help |Programmatic Usage
`javascript
const { convert } = require('@lxgicstudios/docvert');// Convert DOCX to Markdown
const markdown = await convert('document.docx', 'md');
// Convert PDF to HTML
const html = await convert('report.pdf', 'html');
`Examples
$3
`bash
docvert meeting-notes.docx
Output: meeting-notes.md
`$3
`bash
docvert quarterly-report.pdf -t html -o report.html
`$3
`bash
docvert docs/*.docx -t md
``- Zero config - Works out of the box
- Fast - Lazy-loads dependencies
- Clean output - Produces readable, well-formatted documents
- Batch processing - Convert multiple files at once
---
Built by LXGIC Studios