+
Skip to content

yzuyr/utevo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

HTML to LLM understandable formats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载