VibeHunt
Back to browse

hget

Render websites in plain text from your terminal.

hget provides a command‑line interface and a programmatic API for converting HTML pages into plain‑text representations suitable for terminal display. The tool can fetch a remote URL or read local HTML files, then strip away unwanted elements and render the remaining content using colors and formatting from the chalk library. It also supports output as raw HTML or Markdown when those formats are preferred.

The CLI accepts options to define a root element, such as a `<main>` or custom container, and to ignore selectors that should be removed before rendering. It follows HTTP redirects, pages results through the user’s configured pager, and can be disabled with a flag. The API mirrors this functionality, allowing developers to pass an HTML string and receive a formatted plain‑text string, with optional root, ignore, html, or markdown parameters.

Designed for developers who need quick, readable previews of web content in a terminal, hget can be installed locally or globally via npm and is released under the MIT license.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps