youtube.ts

Source

3 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.

3 symbols 2 functions 1 modules 3 parameters 2 returns

Reference

fnextractVideoId(input: string): string | nullExtract YouTube video ID from various URL formats.

Extract YouTube video ID from various URL formats.

Signature

export function extractVideoId(input: string): string | null

View source

Parameters

  • input string

Returns

string | null
fntransformYouTube(html: string, options?: YouTubeOptions): Promise<string>Transform YouTube components in HTML.

Transform YouTube components in HTML.

Signature

export async function transformYouTube(html: string, options?: YouTubeOptions): Promise<string>

View source

Parameters

  • html string
  • options YouTubeOptions

    optional

Returns

Promise<string>
moduleyoutubeYouTube Plugin - Privacy-enhanced iframe embedding Transforms <YouTube> components into responsive iframe embeds using…

YouTube Plugin - Privacy-enhanced iframe embedding

Transforms <YouTube> components into responsive iframe embeds using youtube-nocookie.com for enhanced privacy.

The HTML rewrite is performed in Rust (transformYoutubeEmbeds in

View source