UNPKG

@rolme/ytscript

Version:

A CLI tool to download YouTube transcripts and generate summaries

8 lines (7 loc) 245 B
/** * Extracts the video ID from a YouTube URL * @param url The YouTube video URL * @returns The video ID * @throws Error if the URL is invalid or the video ID cannot be extracted */ export declare function getVideoId(url: string): string;