/webforai

The best HTML to Markdown library, A esm-native & Useful Utilities with simple, lightweight and epic quality.

Primary LanguageTypeScriptApache License 2.0Apache-2.0


webforai logo

A esm-native library that converts HTML to Markdown & Useful Utilities with simple, lightweight and epic quality.

Version Apache License

Documentation

Head to the documentation to read and learn more about Webforai.

Overview

npx webforai@latest

or

import { htmlToMarkdown, htmlToMdast } from "webforai";
import { loadHtml } from "webforai/loaders/playwright";

// Load html from url
const url = "https://www.npmjs.com/package/webforai";
const html = await loadHtml(url);

// Convert html to markdown
const markdown = htmlToMarkdown(html, { baseUrl: url });

Support

License

Apache 2.0 License