Percollate — A command-line tool to turn web pages into beautiful, readable PDF, EPUB, or HTML docs.

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.

Percollate →

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Join the Conversation

1 Comment

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.