Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webforai

inaridiy46Apache-2.02.1.1TypeScript support: included

A library that provides a web interface for AI

web, ai, html, html2md, markdown, mdast, hast

readme


<picture> <source media="(prefers-color-scheme: dark)" srcset="https://webforai.dev/images/logo-full-dark.svg"> webforai logo </picture>

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

<picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/v/webforai?style=flat"> Version </picture> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/l/webforai?style=flat"> Apache License </picture>

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