AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
NPM Package
Programmatic API for Node.js with full TypeScript support.
Basic Usage
import { convertWeb, convertPdf, convertYoutube } from "allmd";
const result = await convertWeb("https://example.com");
console.log(result.markdown);Available Converters
| Function | Input |
|---|---|
convertWeb | URL |
convertYoutube | YouTube URL |
convertPdf | PDF file path |
convertGdoc | Google Docs URL |
convertVideo | Video/audio file path |
convertImage | Image file path |
convertDocx | Word document path |
convertEpub | EPUB file path |
convertCsv | CSV/TSV file path |
convertPptx | PowerPoint file path |
convertTweet | Tweet URL |
convertRss | RSS/Atom feed URL |
ConversionResult
Every converter returns a ConversionResult:
interface ConversionResult {
markdown: string;
title?: string;
metadata?: Record<string, unknown>;
}Options
Pass options as the second argument:
const result = await convertVideo("meeting.mp4", {
frontmatter: true,
verbose: false,
diarize: true,
speakers: ["Alice", "Bob"],
});