Percollate is a command-line tool that turns web pages into beautifully formatted PDF, EPUB, or HTML files.
Installation per NPM
npm install -g percollate
Once installed you can, for example, run this:
percollate epub https://brm.us/at-layer -o css-at-layer.epub
Percollate will automatically extract the main content (powered by Mozilla’s Readability.js), perform some enhancements on it (such as expanding
<details>), and generate the requested file.
Also allows using a custom template and passing in custom CSS via CLI flags.
Leave a comment