open-index/open-npm huggingface dataset:
npm package: @ryuz/utevo
Description: Utevo is a simple TypeScript library for parsing HTML to Markdown and JSON, sanitizing and preserving only semantic structure tags. Ideal for preprocessing HTML for LLMs.
Latest version: 0.0.1

# utevo

[![npm version](https://img.shields.io/npm/v/@ryuz/utevo.svg)](https://www.npmjs.com/package/@ryuz/utevo)
[![license](https://img.shields.io/npm/l/@ryuz/utevo.svg)](./LICENSE)
[![bun](https://img.shields.io/badge/bun-supported-brightgreen)](https://bun.sh/)

**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

```bash
bun add @ryuz/utevo
```

## Usage

```ts
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](./LICENSE) file for details.