A lightweight CLI tool to convert web pages to PDF files with batch processing support.
- 🚀 Simple one-command conversion for single URLs
- 📦 Batch processing from JSON files
- 🎯 Automatic or custom PDF naming
- ⚡ Fast Puppeteer-based rendering
# Install dependencies
pnpm install
# Build the CLI
pnpm build
# Convert a single URL
node dist/cli.js --url "https://example.com" --title "example"
# Batch convert from JSON file
node dist/cli.js --batch urls.json- CLI Usage Guide - Complete command reference and examples
- Development Guide - Setup, project structure, and testing
- Contributing - How to contribute to the project
# Development with hot reload
pnpm dev
# Build for production
pnpm build
# Run tests
pnpm test
# Execute built CLI
pnpm startCreate a JSON array with URL objects:
[
{ "url": "https://example.com", "title": "example" },
{ "url": "https://github.com" }
]PDFs are saved to outputs/<timestamp>/ with automatic title generation from page titles when not specified.
MIT