{"_id":"@aspirio/topdf","name":"@aspirio/topdf","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aspirio/topdf","description":"A command-line tool to convert HTML files to PDF using Puppeteer and Chromium. Preserves styling, backgrounds, and formatting with customizable margins.","version":"1.0.0","main":"index.js","bin":{"toPdf":"index.js"},"keywords":["html","pdf","convert","cli","puppeteer","chromium"],"author":{"name":"Soultan Hatsijev"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aspirio187/html-to-pdf.git"},"engines":{"node":">=14.0.0"},"dependencies":{"puppeteer":"24.26.0"},"_id":"@aspirio/topdf@1.0.0","gitHead":"cd8aa7a2139908fe028088ae3db6f3ccdb275e5e","bugs":{"url":"https://github.com/aspirio187/html-to-pdf/issues"},"homepage":"https://github.com/aspirio187/html-to-pdf#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-N9AA//aDQqzS58mknpB0aI86nrcy9ebJoTzX8AxSzbNGQZD/ckot1z/TCsKJzg/sL0wZRsTWhsehloCYYyyWWg==","shasum":"ba544513733531691118ea0bb61309e56cd2879d","tarball":"https://registry.npmjs.org/@aspirio/topdf/-/topdf-1.0.0.tgz","fileCount":3,"unpackedSize":4840,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCsVBj7S8yFf6Syy1cB5F6ugIPmEEaunkgFYLBqA501LAIgYdYQcMl/Bnd1GDWcbZPJuXP9ge++0PGLhEY85li8w90="}]},"_npmUser":{"name":"aspirio","email":"soultan_98@hotmail.com"},"directories":{},"maintainers":[{"name":"aspirio","email":"soultan_98@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/topdf_1.0.0_1761901767958_0.6654910734050079"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-31T09:09:27.883Z","1.0.0":"2025-10-31T09:09:28.149Z","modified":"2025-10-31T09:09:28.398Z"},"maintainers":[{"name":"aspirio","email":"soultan_98@hotmail.com"}],"description":"A command-line tool to convert HTML files to PDF using Puppeteer and Chromium. Preserves styling, backgrounds, and formatting with customizable margins.","homepage":"https://github.com/aspirio187/html-to-pdf#readme","keywords":["html","pdf","convert","cli","puppeteer","chromium"],"repository":{"type":"git","url":"git+https://github.com/aspirio187/html-to-pdf.git"},"author":{"name":"Soultan Hatsijev"},"bugs":{"url":"https://github.com/aspirio187/html-to-pdf/issues"},"license":"MIT","readme":"# HTML to PDF CLI\n\nA command-line tool to convert HTML files to PDF using Puppeteer and Chromium. Preserves styling, backgrounds, and formatting with customizable margins.\n\n## Installation\n\nInstall globally via npm:\n\n```bash\nnpm install -g html-to-pdf-cli\n```\n\n## Usage\n\n```bash\nhtml-to-pdf -i input.html -o output.pdf\n```\n\n### Options\n\n- `-i, --input <file>` - Input HTML file path (required)\n- `-o, --output <file>` - Output PDF file path (required)\n- `-h, --help` - Show help message\n\n### Examples\n\n```bash\n# Convert a single HTML file\nhtml-to-pdf -i report.html -o report.pdf\n\n# Using long options\nhtml-to-pdf --input invoice.html --output invoice.pdf\n```\n\n## Features\n\n- ✅ Preserves CSS styling and backgrounds\n- ✅ A4 format with customizable margins\n- ✅ Uses system Chromium for reliable rendering\n- ✅ Handles complex layouts and fonts\n- ✅ Fast and lightweight\n\n## Requirements\n\n- Node.js 14.0.0 or higher\n- Chromium browser installed on your system\n\n## License\n\nMIT\n\n## Author\n\nSoultan Hatsijev\n","readmeFilename":"README.md","_rev":"1-a27d368daf896b912673ce8c79cb9056"}