allmd

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

FunctionInput
convertWebURL
convertYoutubeYouTube URL
convertPdfPDF file path
convertGdocGoogle Docs URL
convertVideoVideo/audio file path
convertImageImage file path
convertDocxWord document path
convertEpubEPUB file path
convertCsvCSV/TSV file path
convertPptxPowerPoint file path
convertTweetTweet URL
convertRssRSS/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"],
});

On this page