Utevo is a lightweight, modern TypeScript library for converting HTML into Markdown and JSON. It is designed to sanitize and preserve only semantic structure tags, making HTML preprocessing for LLMs or other downstream tasks simple, safe, and reliable.
- 🧹 Sanitizes HTML, removing unsafe/irrelevant tags
- 🔄 Converts HTML to Markdown and JSON
- ⚡ Fast and lightweight
- 🧩 Easy integration with Bun, Node.js, or browser
bun add @ryuz/utevo
import { parse } from "@ryuz/utevo";
const result = parse("<h1>hello</h1>");
console.log(result.toMarkdown()); // "# hello"
console.log(result.toJSON()); // [{ type: 'heading', depth: 1, children: [...] }]
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.