A CLI and API tool that converts HTML into plain text, Markdown, or filtered HTML for terminal viewing.
hget is a Node.js-based command-line tool and API that converts HTML into plain text, Markdown, or filtered HTML for viewing in the terminal. It solves the problem of accessing web content in a text-only environment by stripping away visual elements and delivering clean, readable output. Developers can use it to fetch websites, process local HTML files, or integrate HTML-to-text conversion into their applications.
Developers and system administrators who work in terminal environments and need to view or process web content without a graphical browser. It's also useful for those building scripts that require HTML content extraction or conversion.
hget stands out for its simplicity, flexibility in output formats (plain text, Markdown, HTML), and powerful element filtering options. Unlike basic curl or wget commands, it provides formatted, human-readable output with terminal colors and selective content ignoring, making it ideal for focused content extraction.
:clap: Render websites in plain text from your terminal
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses Chalk to add colors and formatting to plain text output, making it visually appealing and readable directly in terminals, as shown in the example with EchoJS.
Supports plain text, Markdown, and filtered HTML output, allowing flexibility for different use cases like documentation or further processing.
Enables ignoring specific DOM elements using CSS selectors, such as --ignore footer,ads, to focus on relevant content without manual cleanup.
Command-line interface supports piping, file input, and URL fetching with automatic paging via $PAGER and redirect following for seamless terminal use.
Cannot handle JavaScript-rendered content, making it ineffective for modern web apps that rely on client-side dynamic loading, as it only processes raw HTML.
Requires Node.js and npm for installation, which adds overhead and limits usage in environments where only lightweight system tools are available.
README is concise but lacks detailed examples for advanced scenarios, error handling, or performance benchmarks, which might hinder troubleshooting.