resolveYoutubeChannelId
Import from: @xbbg/xnews
resolveYoutubeChannelId(
channel,options?):Promise<string>
Defined in: src/sources/youtube.ts (declaration: sources/youtube.d.ts:29)
Resolves a channel reference — a UC… ID, a channel/handle URL, or a bare @handle — to the canonical UC… channel ID. IDs and /channel/UC… URLs resolve locally; anything else fetches the channel page once and reads the canonical channel link out of the HTML.
Parameters
channel
string
options?
Returns
Promise<string>
