{"_id":"@ejekanshjain/html-pdf","_rev":"9-46440bd1a1b21589f9111179f499bed9","name":"@ejekanshjain/html-pdf","dist-tags":{"latest":"1.7.0"},"versions":{"1.0.0":{"name":"@ejekanshjain/html-pdf","version":"1.0.0","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","_id":"@ejekanshjain/html-pdf@1.0.0","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"homepage":"https://github.com/ejekanshjain/html-pdf#readme","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"dist":{"shasum":"d06e5a388924e852b055783bd9efb87ddbac1db1","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.0.0.tgz","fileCount":15,"integrity":"sha512-66w0onFKCyWs1AgV7x0OOoN/e+Qr3ptm5MMFnQSLa7RbZCv1EvP2BP4fS7xVVgzvHBETgB0a7Nig40rIXKLJJQ==","signatures":[{"sig":"MEUCIB6n5ZqF/c/GaUiIjR0Mtw46udUq00+jFmA1XUm55ZigAiEA5KOyuJbxLRYyL3gXo2hdNmiIeiJZOJHc9fzvIe5qnUA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13387},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"789251a6c2f504a894e8ca6517d404276388604b","scripts":{"build":"npm run clean && tsc","clean":"rimraf build && rimraf tsconfig.tsbuildinfo","watch":"npm run clean && tsc -w"},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"repository":{"url":"git+https://github.com/ejekanshjain/html-pdf.git","type":"git"},"_npmVersion":"10.1.0","description":"Easily convert html to pdf files","directories":{},"_nodeVersion":"20.6.1","dependencies":{"puppeteer":"^21.3.4","handlebars":"^4.7.8","inline-css":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.1","prettier":"^3.0.0","typescript":"^5.1.6","@types/node":"^20.4.2","@types/prettier":"^2.7.3","@types/inline-css":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/html-pdf_1.0.0_1695452135720_0.6693321065746209","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@ejekanshjain/html-pdf","version":"1.0.1","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","_id":"@ejekanshjain/html-pdf@1.0.1","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"homepage":"https://github.com/ejekanshjain/html-pdf#readme","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"dist":{"shasum":"bb30ab449421a2494498ee725e01733e8e3ed730","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.0.1.tgz","fileCount":15,"integrity":"sha512-n3HlX8yBrFEif+aaR9ANCAR2m1VHl2mSAOVC4v/+/JfStDdECzAsjBLA45bICRb4qZsA3rjzRyCarNzzIfgPUQ==","signatures":[{"sig":"MEUCIQDS92U4t/38Fla0xe1k5PE/JjJB7W4dea7d5x7clYWF2wIgOK5favqzgwNCFgB9l4jUmF7AzB/B75jlgGg5hFhhe+w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13730},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"9a4967d84dfb53020ce7fe3b212f65b0011beec0","scripts":{"build":"npm run clean && tsc","clean":"rimraf build && rimraf tsconfig.tsbuildinfo","watch":"npm run clean && tsc -w"},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"repository":{"url":"git+https://github.com/ejekanshjain/html-pdf.git","type":"git"},"_npmVersion":"10.1.0","description":"Easily convert html to pdf files","directories":{},"_nodeVersion":"20.7.0","dependencies":{"puppeteer":"^21.3.4","handlebars":"^4.7.8","inline-css":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.1","prettier":"^3.0.0","typescript":"^5.1.6","@types/node":"^20.4.2","@types/prettier":"^2.7.3","@types/inline-css":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/html-pdf_1.0.1_1696172699565_0.6953752293750701","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@ejekanshjain/html-pdf","version":"1.1.0","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","_id":"@ejekanshjain/html-pdf@1.1.0","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"homepage":"https://github.com/ejekanshjain/html-pdf#readme","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"dist":{"shasum":"16801fd3ec0aaff4365bc1590994ca23ad690ac9","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.1.0.tgz","fileCount":15,"integrity":"sha512-C1Tm5wtaNnrtP6/RcWZyNxx13aHPELM4xRAFizA0wO92EEQedCYKmt5y+HNKZQ7ebg7e5MkHVKhwU4kUXf8F9g==","signatures":[{"sig":"MEYCIQD4zRcjyovqBmFR2uRn5L8V3mzHT++5odtbwmKmMWKBjAIhAKfcXMcSzAzpINcd0wpi+7mPv01wW/34SxYvGm57zX9U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13730},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"54006f385cd3cd1149b30007fd67db7f7ef0f1ce","scripts":{"build":"npm run clean && tsc","clean":"rimraf build && rimraf tsconfig.tsbuildinfo","watch":"npm run clean && tsc -w"},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"repository":{"url":"git+https://github.com/ejekanshjain/html-pdf.git","type":"git"},"_npmVersion":"10.1.0","description":"Easily convert html to pdf files","directories":{},"_nodeVersion":"20.7.0","dependencies":{"puppeteer":"^21.3.4","handlebars":"^4.7.8","inline-css":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.1","prettier":"^3.0.0","typescript":"^5.1.6","@types/node":"^20.4.2","@types/prettier":"^2.7.3","@types/inline-css":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/html-pdf_1.1.0_1696173330887_0.6908513931941795","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@ejekanshjain/html-pdf","version":"1.2.0","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","_id":"@ejekanshjain/html-pdf@1.2.0","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"homepage":"https://github.com/ejekanshjain/html-pdf#readme","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"dist":{"shasum":"c107724dc3487134aaf602eb713c5a3307d5b4a7","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.2.0.tgz","fileCount":15,"integrity":"sha512-rizz1Q/xzJCrO/2mtriVLdh6C6tw76yXY7KniY75xogw8aAKLEJMXtWXdnuL+R9l1cZ+Osfm1JQgXYdHSeodOg==","signatures":[{"sig":"MEUCID/kA06wVNNqVHYu9oPynpbe04HuXQa4siJ5/RICNQRIAiEAio9IqcwrmbvjZFhtSIhWvNWUDkpaS7ylTqFQ7mZeP4U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15735},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"8cc715fc7ba2eb68316c3bac0b27e7380a20335b","scripts":{"build":"npm run clean && tsc","clean":"rimraf build && rimraf tsconfig.tsbuildinfo","watch":"npm run clean && tsc -w"},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"repository":{"url":"git+https://github.com/ejekanshjain/html-pdf.git","type":"git"},"_npmVersion":"10.1.0","description":"Easily convert html to pdf files","directories":{},"_nodeVersion":"20.8.0","dependencies":{"puppeteer":"^21.3.4","handlebars":"^4.7.8","inline-css":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.1","prettier":"^3.0.0","typescript":"^5.1.6","@types/node":"^20.4.2","@types/prettier":"^2.7.3","@types/inline-css":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/html-pdf_1.2.0_1696612197676_0.023516791311820384","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@ejekanshjain/html-pdf","version":"1.3.0","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","_id":"@ejekanshjain/html-pdf@1.3.0","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"homepage":"https://github.com/ejekanshjain/html-pdf#readme","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"dist":{"shasum":"933cdd0478f3c3bacc183ed252faa2ad7ebd0b9a","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.3.0.tgz","fileCount":6,"integrity":"sha512-eElrjhu76c2/+Zql+VNko8XDam7RQ83bVv7NoEK4PNNRl5NmIDYiL7vG7ap/SwVBzVn3KKB8zQCaMJixAgdy9A==","signatures":[{"sig":"MEUCIQDkfPUHrbUObYc22xKKTHlqy7/Tfkp0F5nlYSei7WgozQIgIi7T1EnjF2OonmHNKM6lPM4hSPH5dli1QR5vEPr0O5s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7585},"main":"build/index.js","gitHead":"cc13f781c97037e5b5f20abb4663be4dba88c9fa","scripts":{"build":"npm run clean && tsc","clean":"rimraf build && rimraf tsconfig.tsbuildinfo","watch":"npm run clean && tsc -w"},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"repository":{"url":"git+https://github.com/ejekanshjain/html-pdf.git","type":"git"},"_npmVersion":"10.2.4","description":"Easily convert html to pdf files","directories":{},"_nodeVersion":"21.3.0","dependencies":{"puppeteer":"^21.5.2","handlebars":"^4.7.8","inline-css":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","typescript":"^5.3.2","@types/node":"^20.10.3","@types/inline-css":"^3.0.3"},"_npmOperationalInternal":{"tmp":"tmp/html-pdf_1.3.0_1701841447720_0.3697148505070216","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"@ejekanshjain/html-pdf","version":"1.4.0","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","_id":"@ejekanshjain/html-pdf@1.4.0","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"homepage":"https://github.com/ejekanshjain/html-pdf#readme","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"dist":{"shasum":"90b3011ea233532d5e3d85838a11036766b70694","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.4.0.tgz","fileCount":14,"integrity":"sha512-0Ktmf++PKOCWFUZNNSa1k2z+kPqyS5OgQBux3uypU9jHI5WvqnjjNyu/7nVAGjR5Fp1l9pL9be5Ev+WXcsdMDg==","signatures":[{"sig":"MEUCIFxsL8eKn3ATHKNha3jn1IdjafPJyISuPKzHKUXju2FeAiEA+WSqhO1xxOOKSi89deXuFR2/yF+QgPNLRUC03eBF2vE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16151},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"d27cd78f69d8313579fd862a9476e0133c06f6a0","scripts":{"build":"npm run clean && tsc","clean":"rimraf build && rimraf tsconfig.tsbuildinfo","watch":"npm run clean && tsc -w"},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"repository":{"url":"git+https://github.com/ejekanshjain/html-pdf.git","type":"git"},"_npmVersion":"10.2.4","description":"Easily convert html to pdf files","directories":{},"_nodeVersion":"21.3.0","dependencies":{"puppeteer":"^21.5.2","handlebars":"^4.7.8","inline-css":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","typescript":"^5.3.2","@types/node":"^20.10.3","@types/inline-css":"^3.0.3"},"_npmOperationalInternal":{"tmp":"tmp/html-pdf_1.4.0_1701843359198_0.33751846759389825","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"@ejekanshjain/html-pdf","version":"1.5.0","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","_id":"@ejekanshjain/html-pdf@1.5.0","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"homepage":"https://github.com/ejekanshjain/html-pdf#readme","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"dist":{"shasum":"b036273974c63383a12c704d7793edb823428690","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.5.0.tgz","fileCount":14,"integrity":"sha512-upNyHDEJezlJVDA1GwBvLwiSzh65L4/sZX5JNogPEF12fNjdiV3YZgVaZ1LIIjCxVI5mLTpEMRs2+k+kmO9BXw==","signatures":[{"sig":"MEUCIEbnB83XezEzs3o3j7BkKX1KNwBfh+1tU4GDiWoLLSBVAiEA1S8SP6euO96rN9pMZWxs70RAt58PQX/Fqdg9oy1jx70=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16530},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"d27cd78f69d8313579fd862a9476e0133c06f6a0","scripts":{"build":"npm run clean && tsc","clean":"rimraf build && rimraf tsconfig.tsbuildinfo","watch":"npm run clean && tsc -w"},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"repository":{"url":"git+https://github.com/ejekanshjain/html-pdf.git","type":"git"},"_npmVersion":"10.8.2","description":"Easily convert html to pdf files","directories":{},"_nodeVersion":"22.5.1","dependencies":{"puppeteer":"^22.13.1","handlebars":"^4.7.8","inline-css":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","typescript":"^5.5.3","@types/node":"^20.14.11","@types/inline-css":"^3.0.3"},"_npmOperationalInternal":{"tmp":"tmp/html-pdf_1.5.0_1721465682105_0.2445263936245452","host":"s3://npm-registry-packages"}},"1.6.0":{"name":"@ejekanshjain/html-pdf","version":"1.6.0","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","_id":"@ejekanshjain/html-pdf@1.6.0","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"homepage":"https://github.com/ejekanshjain/html-pdf#readme","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"dist":{"shasum":"045ca8b975bb162b5a7d0e3ac46b8e311c4ad632","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.6.0.tgz","fileCount":14,"integrity":"sha512-BADCyAoJ4WpqfCg8pIdgKqq05yov12UQTJPYrgmns+cwt6Faz+B0BJB7gx89WIbBHobaMfQxTCasKwMHAfAPMg==","signatures":[{"sig":"MEQCIF7kkLi5I15B4LyGL056n7IIp/AjzlJBG6THNlpbDdTPAiA4NlrOzNLKKfQvNQJAOAy9M2qubvb6m2YvdJOlnlKhBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18279},"main":"build/index.js","types":"./build/index.d.ts","gitHead":"df39e4dd82e1b2df0ac5059b202dad8e26c561d7","scripts":{"build":"npm run clean && tsc","clean":"rimraf build && rimraf tsconfig.tsbuildinfo","watch":"npm run clean && tsc -w"},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"repository":{"url":"git+https://github.com/ejekanshjain/html-pdf.git","type":"git"},"_npmVersion":"11.6.4","description":"Easily convert html to pdf files","directories":{},"_nodeVersion":"25.2.1","dependencies":{"puppeteer":"^24.34.0","handlebars":"^4.7.8","inline-css":"^4.0.3"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.2","typescript":"^5.9.3","@types/node":"^25.0.3","@types/inline-css":"^3.0.4"},"_npmOperationalInternal":{"tmp":"tmp/html-pdf_1.6.0_1766216075291_0.6574092065476196","host":"s3://npm-registry-packages-npm-production"}},"1.7.0":{"name":"@ejekanshjain/html-pdf","version":"1.7.0","description":"Easily convert html to pdf files","main":"build/index.js","scripts":{"clean":"rimraf build && rimraf tsconfig.tsbuildinfo","build":"npm run clean && tsc","watch":"npm run clean && tsc -w"},"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/html-pdf.git"},"keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"author":{"name":"Ekansh Jain"},"license":"MIT","bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"homepage":"https://github.com/ejekanshjain/html-pdf#readme","devDependencies":{"@types/inline-css":"^3.0.4","@types/node":"^25.0.3","rimraf":"^6.1.2","typescript":"^5.9.3"},"dependencies":{"handlebars":"^4.7.8","inline-css":"^4.0.3","puppeteer":"^24.34.0"},"gitHead":"5247836e9ebd7641d0f0d62b3ba20ce8961e90b8","types":"./build/index.d.ts","_id":"@ejekanshjain/html-pdf@1.7.0","_nodeVersion":"25.2.1","_npmVersion":"11.6.4","dist":{"integrity":"sha512-Tx/3uiZf1mWc9lmv0iKq5gWUUXGR8vihfRh/aHv46rdKR9uwXqcQy8g+l78MtTOSW83vfriuhL4gpjLSxs3ucQ==","shasum":"b802cff129520ae628a3d148878f07893df03431","tarball":"https://registry.npmjs.org/@ejekanshjain/html-pdf/-/html-pdf-1.7.0.tgz","fileCount":19,"unpackedSize":21305,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC1pNnGmQItZ0pwKSW3dutLkQfsOWQ182rbcgMW5PIlSgIhAJFBvfXKAqh+dlhMINNtCGyehyown2N0yc2ge0UuyKl8"}]},"_npmUser":{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"},"directories":{},"maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/html-pdf_1.7.0_1766385049719_0.7756753965059482"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-23T06:55:35.584Z","modified":"2025-12-22T06:30:50.064Z","1.0.0":"2023-09-23T06:55:35.899Z","1.0.1":"2023-10-01T15:04:59.733Z","1.1.0":"2023-10-01T15:15:31.137Z","1.2.0":"2023-10-06T17:09:57.894Z","1.3.0":"2023-12-06T05:44:07.937Z","1.4.0":"2023-12-06T06:15:59.415Z","1.5.0":"2024-07-20T08:54:42.285Z","1.6.0":"2025-12-20T07:34:35.445Z","1.7.0":"2025-12-22T06:30:49.848Z"},"bugs":{"url":"https://github.com/ejekanshjain/html-pdf/issues"},"author":{"name":"Ekansh Jain"},"license":"MIT","homepage":"https://github.com/ejekanshjain/html-pdf#readme","keywords":["pdf","html-pdf","html","puppeteer","javascript","typescript"],"repository":{"type":"git","url":"git+https://github.com/ejekanshjain/html-pdf.git"},"description":"Easily convert html to pdf files","maintainers":[{"name":"ejekanshjain","email":"ejekanshjain@gmail.com"}],"readme":"# html-pdf\n\nInstall this package\n```\nnpm install @ejekanshjain/html-pdf\n```\n\nGenerate pdf\n```\nimport { writeFile } from 'fs/promises'\nimport { generatePdf } from '@ejekanshjain/html-pdf'\n\nconst html = '<html><body><h1>Hello, World</h1></body></html>'\n\nconst pdfBuffer = await generatePdf({\n  content: html\n})\n\nawait writeFile('test.pdf', pdfBuffer)\n\n```\n","readmeFilename":"README.md"}