
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
@humanwhocodes/print-ready
Advanced tools
If you find this useful, please consider supporting my work with a donation.
A JavaScript-powered CLI for converting HTML into PDFs.
EXPERIMENTAL: This project is still in the very early stages and should not be relied upon for production. At this point, I'm just looking for feedback and fixing bugs.
Install using [npm][npm] or [yarn][yarn]:
npm install @humanwhocodes/print-ready --save
# or
yarn add @humanwhocodes/print-ready
Then on the command line:
npx print-ready foo.html
This will render foo.html to a file named foo.pdf. You can also override the output filename:
npx print-ready foo.html -o bar.pdf
PrintReady uses PagedJS to render your HTML file inside Puppeteer and then exports a PDF from Puppeteer.
npm install to setup dependenciesnpm test to run testsThis project is based on PagedJS-CLI, an MIT-licensed project. While not strictly a fork, this project does use some code from PagedJS-CLI.
Why don't you just use the PagedJS-CLI?
I tried, but it kept crashing on me and it doesn't appear to be maintained any longer. Rather than giving up, I decided to write my own.
Why haven't you implemented all the features PagedJS-CLI?
For my purposes I don't need all of the features of PagedJS-CLI. However, I'm open to contributions to add those extra features.
FAQs
Convert HTML to PDF
The npm package @humanwhocodes/print-ready receives a total of 6 weekly downloads. As such, @humanwhocodes/print-ready popularity was classified as not popular.
We found that @humanwhocodes/print-ready demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.