0.0.1 • Published 6 months ago

@ryuz/utevo v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

utevo

npm version license bun

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.

Features

  • 🧹 Sanitizes HTML, removing unsafe/irrelevant tags
  • 🔄 Converts HTML to Markdown and JSON
  • ⚡ Fast and lightweight
  • 🧩 Easy integration with Bun, Node.js, or browser

Installation

bun add @ryuz/utevo

Usage

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: [...] }]

Contributing

Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.