Commands • API Reference • Browser Usage • File Types
The filetomarkdown package provides these command-line tools:
filetomarkdown- Main conversion commandfiletomarkdown-server- API serverfiletomarkdown-test- Test conversion suitefiletomarkdown-filetypes- List supported formatsfiletomarkdown-viewer- Launch Markdown Viewer
Converts a single file to Markdown.
filetomarkdown <input-file> [output-file]Examples:
# Convert to same directory with .md extension
filetomarkdown document.pdf
# Convert to specific output file
filetomarkdown document.docx output.md
# Convert with paths
filetomarkdown ./src/code.py ./docs/code.mdSupported formats: PDF, DOCX, PPTX, XLSX, TXT, ZIP, 7Z, and 60+ code file types.
Starts a local API server for file conversions.
filetomarkdown-serverFeatures:
- Runs on
http://localhost:3000 - API endpoints:
/api/convert,/api/filetypes,/health - CORS enabled for cross-origin requests
- Serves static files
See API Documentation for endpoint details.
Downloads example files and runs conversions to test the installation.
filetomarkdown-testWhat it does:
- Processes example files of all supported types
- Creates
examples/exampleFilesandexamples/outputAfterConversiondirectories - Shows success/failure status for each conversion
- Displays file sizes and processing results
Lists all file extensions supported by the converters.
filetomarkdown-filetypesOutput: Shows 60+ supported file formats including:
- Office documents (PDF, DOCX, PPTX, XLSX)
- LibreOffice files (ODT, ODS, ODP)
- Code files (JS, TS, PY, JAVA, CS, HTML, etc.)
- Archive formats (ZIP, 7Z)
- Configuration files (JSON, YAML, TOML, etc.)
Downloads and launches the standalone Markdown Viewer application.
filetomarkdown-viewer [options]Options:
-h, --help- Show help message-u, --update- Force update/re-download the viewer--version- Check version and launch viewer
Features:
- Auto-downloads from GitHub releases
- Caches viewer locally (
~/.filetomarkdown/) - Automatically checks for updates
- Launches Windows executable