MCPcopy Index your code

hub / github.com/LuanRT/YouTube.js / functions

Functions1,594 in github.com/LuanRT/YouTube.js

↓ 338 callersMethodstring
()
src/parser/helpers.ts:86
↓ 148 callersMethodtoString
()
src/parser/classes/misc/Text.ts:11
↓ 134 callersMethodas
* Cast to one of the given types. * @param types - The types to cast to * @returns The node cast to one of the given types * @throws {Parsing
src/parser/helpers.ts:29
↓ 132 callersMethodfromResponse
* Get thumbnails from response object.
src/parser/classes/misc/Thumbnail.ts:17
↓ 117 callersMethodencode
(message: T, writer?: BinaryWriter)
protos/generated/misc/params.ts:2615
↓ 115 callersMethodset
(key: string, value: ArrayBuffer)
src/types/Cache.ts:4
↓ 107 callersMethoddecode
(input: BinaryReader | Uint8Array, length?: number)
protos/generated/misc/params.ts:2616
↓ 105 callersMethodcall
(actions: Actions, args?: { [key: string]: any; parse?: boolean })
src/parser/classes/NavigationEndpoint.ts:123
↓ 98 callersMethodis
* Check if the node is of the given type. * @param types - The type to check * @returns whether the node is of the given type
src/parser/helpers.ts:19
↓ 97 callersMethodgetType
(...types: YTNodeConstructor<YTNode>[] | YTNodeConstructor<YTNode>[][])
src/parser/helpers.ts:505
↓ 68 callersMethodget
(key: string)
src/types/Cache.ts:3
↓ 43 callersMethodfromAttributed
(data: AttributedText)
src/parser/classes/misc/Text.ts:103
↓ 35 callersFunctionobserve
(obj: Array<T>)
src/parser/helpers.ts:424
↓ 34 callersMethoditem
()
src/parser/helpers.ts:342
↓ 31 callersFunctionthrowIfMissing
(params: object)
src/utils/Utils.ts:174
↓ 27 callersMethodexecute
(endpoint: T, args?: { [key: string]: any; parse?: boolean; protobuf?: boolean; serialized_dat
src/core/Actions.ts:95
↓ 21 callersMethodisArray
* Check whether the value is an array. * @returns whether the value is an array.
src/parser/helpers.ts:194
↓ 17 callersMethodemit
(type: string, ...args: any[])
src/utils/EventEmitterLike.ts:10
↓ 15 callersFunctionparseItem
(data?: RawNode, validTypes?: YTNodeConstructor | YTNodeConstructor[])
src/parser/parser.ts:539
↓ 14 callersMethodon
(type: string, listener: (...args: any[]) => void)
src/core/Session.ts:289
↓ 14 callersFunctionu8ToBase64
(u8: Uint8Array)
src/utils/Utils.ts:246
↓ 13 callersMethodfetch_function
()
src/utils/HTTPClient.ts:36
↓ 13 callersFunctionisTextRun
(run: TextRun | EmojiRun)
src/utils/Utils.ts:256
↓ 12 callersMethodcreate
( cache: ICache | undefined, fetch: FetchFunction = Platform.shim.fetch, po_token?: string, player
src/core/Player.ts:43
↓ 11 callersMethoddelete
* Deletes a given playlist. * @param playlist_id - The playlist ID.
src/core/managers/PlaylistManager.ts:47
↓ 11 callersMethodhasTabWithURL
(url: string)
src/core/mixins/TabbedFeed.ts:51
↓ 10 callersFunction_clearMemo
()
src/parser/parser.ts:168
↓ 10 callersFunction_createMemo
()
src/parser/parser.ts:172
↓ 10 callersFunction_getMemo
()
src/parser/parser.ts:187
↓ 10 callersFunctionaccessDataFromKeyPath
(root: any, key_path: string[])
src/parser/generator.ts:647
↓ 10 callersMethodarray
* Get the value as an array. * @returns the value as any[]. * @throws If the value is not an array.
src/parser/helpers.ts:166
↓ 10 callersMethodgetInfo
(target: string | NavigationEndpoint, options?: GetVideoInfoOptions)
src/Innertube.ts:75
↓ 10 callersMethodgetTabByURL
(url: string)
src/core/mixins/TabbedFeed.ts:37
↓ 9 callersMethod#checkPrimitive
(type: 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function')
src/parser/helpers.ts:71
↓ 9 callersFunctionfetch
( request: Request, env: Env, ctx: ExecutionContext )
examples/cloudflare-worker/src/index.ts:6
↓ 9 callersFunctiongetStringBetweenStrings
(data: string, start_string: string, end_string: string)
src/utils/Utils.ts:84
↓ 9 callersMethodkey
* Assert that the node has the given key and return it. * @param key - The key to check * @returns The value of the key wrapped in a Maybe *
src/parser/helpers.ts:51
↓ 9 callersFunctionmemberToString
(memberExpression: ESTree.Node, source: string)
src/utils/javascript/helpers.ts:153
↓ 9 callersFunctiontimeToSeconds
(time: string)
src/utils/Utils.ts:140
↓ 8 callersMethod#assertPrimitive
(type: 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function')
src/parser/helpers.ts:75
↓ 8 callersFunctiongenerateRandomString
(length: number)
src/utils/Utils.ts:124
↓ 8 callersMethodgetContinuation
* Retrieves next batch of contents and returns a new {@link Feed} object.
src/core/mixins/Feed.ts:220
↓ 7 callersFunctionERROR_HANDLER
({ classname, ...context }: ParserError)
src/parser/parser.ts:100
↓ 7 callersFunctioncopyHeader
(headerName: string, to: Headers, from: Headers)
examples/browser/proxy/deno.ts:5
↓ 7 callersMethodsearch
(query: string, filters: SearchFilters = {})
src/Innertube.ts:201
↓ 6 callersMethod#wait
(ms: number)
src/parser/youtube/LiveChat.ts:324
↓ 6 callersMethodgetContinuationData
()
src/parser/youtube/Playlist.ts:84
↓ 6 callersMethodload
(platform: PlatformShim)
src/utils/Utils.ts:16
↓ 6 callersFunctionparse
(data?: RawData, requireArray?: boolean, validTypes?: YTNodeConstructor<T> | YTNodeConstructor<T>[])
src/parser/parser.ts:632
↓ 5 callersFunctioncamelToSnake
(str: string)
src/parser/generator.ts:82
↓ 5 callersFunctiondoLog
(level: number, tag?: string, args?: any[])
src/utils/Log.ts:21
↓ 5 callersFunctionextractNodeSource
(node: ESTree.Node | null | undefined, source: string)
src/utils/javascript/helpers.ts:143
↓ 5 callersMethodfetch
( input: URL | Request | string, init?: RequestInit & HTTPClientInit )
src/utils/HTTPClient.ts:40
↓ 5 callersMethodgetSource
* Returns the raw, original source.
src/utils/javascript/JsAnalyzer.ts:655
↓ 5 callersFunctionshowUI
(args: { hidePlayer?: boolean } = { hidePlayer: true })
examples/browser/web/src/main.ts:351
↓ 4 callersMethodapplyFilter
* Applies given filter to the search.
src/parser/ytmusic/Search.ts:86
↓ 4 callersMethodareSafeArgs
* Checks if all provided arguments are safe initializers. * @param args - The arguments to check. * @param mode - The side effect mode to use ('
src/utils/javascript/JsExtractor.ts:69
↓ 4 callersMethodcacheCredentials
()
src/core/OAuth2.ts:105
↓ 4 callersMethoddecipher
(url?: string, signature_cipher?: string, cipher?: string, this_response_nsig_cache?: Map<string, string>)
src/core/Player.ts:129
↓ 4 callersMethodfindDependencies
* Collects free identifier dependencies reachable from the provided AST node. * @param rootNode - AST node to search for dependencies. * @param
src/utils/javascript/JsAnalyzer.ts:438
↓ 4 callersMethodgetPlaylist
(id: string)
src/Innertube.ts:417
↓ 4 callersFunctioninsertSubRun
(runs: RawRun[], original_run: RawRun, response_run: ResponseRun, properties_to_add: Omit<RawRun, 'text' | 'st
src/parser/classes/misc/Text.ts:282
↓ 4 callersFunctionlongToNumber
(int64: { toString(): string })
protos/generated/youtube/api/pfiinnertube/client_info.ts:2848
↓ 4 callersMethodremove
(key: string)
src/types/Cache.ts:5
↓ 4 callersMethodtoHTML
()
src/parser/classes/misc/Text.ts:13
↓ 4 callersMethoduuidv4
()
src/types/PlatformShim.ts:17
↓ 3 callersMethod#createCache
()
src/platform/node.ts:38
↓ 3 callersMethod#createCache
()
src/platform/deno.ts:32
↓ 3 callersMethod#emitSmoothedActions
* Ensures actions are emitted at the right speed. * This and {@link SmoothedQueue} were based off of YouTube's own implementation.
src/parser/youtube/LiveChat.ts:193
↓ 3 callersMethod#fetchInfoFromEndpoint
(endpoint?: NavigationEndpoint, options?: GetVideoInfoOptions)
src/core/clients/Music.ts:95
↓ 3 callersMethod#getBrowserDB
()
src/platform/web.ts:23
↓ 3 callersMethod#getStat
(index: number, primary_info?: PlaylistSidebarPrimaryInfo)
src/parser/youtube/Playlist.ts:110
↓ 3 callersMethod#getStorage
()
src/platform/react-native.ts:20
↓ 3 callersFunctionfindMatchingRun
(runs: RawRun[], response_run: ResponseRun)
src/parser/classes/misc/Text.ts:275
↓ 3 callersFunctiongenerateWrapper
* Generates a wrapper function string. * @param functionName - The name of the wrapper function. * @param targetFunction - The name of the target fu
src/utils/javascript/helpers.ts:253
↓ 3 callersMethodgetChannel
(id: string)
src/Innertube.ts:385
↓ 3 callersMethodgetFilteredFeed
* Applies given filter and returns a new {@link Feed} object.
src/core/mixins/FilterableFeed.ts:99
↓ 3 callersMethodgetHomeFeed
()
src/Innertube.ts:344
↓ 3 callersMethodgetTab
* Retrieves contents of the given tab.
src/parser/ytmusic/TrackInfo.ts:46
↓ 3 callersMethodgetUpNext
(video_id: string, automix = true)
src/core/clients/Music.ts:206
↓ 3 callersMethodisObject
(data: RawNode)
src/parser/classes/misc/Text.ts:99
↓ 3 callersFunctionlongToNumber
(int64: { toString(): string })
protos/generated/youtube/api/pfiinnertube/playback_context.ts:507
↓ 3 callersMethodonMatch
* Records a match, attaches metadata, and updates readiness state. * @returns True when traversal can stop as a result of the match.
src/utils/javascript/JsAnalyzer.ts:312
↓ 3 callersFunctionparseArray
(data?: RawNode[], validTypes?: YTNodeConstructor | YTNodeConstructor[])
src/parser/parser.ts:605
↓ 3 callersFunctionparseFunctionArguments
* Parses function arguments to create a string representation suitable for * use in our custom function calls. * @param analyzer - The JsAnalyzer in
src/utils/javascript/helpers.ts:267
↓ 3 callersFunctionparseRR
(actions: RawNode[])
src/parser/parser.ts:743
↓ 3 callersMethodrenderNode
* Renders an AST node to JavaScript source code, with special handling for variable declarators. * @param node - The ESTree node to render. * @p
src/utils/javascript/JsExtractor.ts:248
↓ 3 callersMethodsetActions
(actions: Actions | undefined)
src/parser/classes/comments/CommentView.ts:273
↓ 3 callersMethodsetTokens
(tokens: OAuth2Tokens)
src/core/OAuth2.ts:85
↓ 3 callersMethodsignIn
(credentials?: OAuth2Tokens)
src/core/Session.ts:661
↓ 3 callersMethodstop
()
src/parser/youtube/LiveChat.ts:134
↓ 2 callersMethod#getBodyContinuations
()
src/core/mixins/Feed.ts:227
↓ 2 callersMethod#getPatchedReplies
(data: Memo)
src/parser/classes/comments/CommentThread.ts:99
↓ 2 callersMethod#getPlaylist
(playlist_id: string)
src/core/managers/PlaylistManager.ts:239
↓ 2 callersMethod#parseAutoplaySet
(data: RawNode)
src/parser/classes/TwoColumnWatchNextResults.ts:70
↓ 2 callersMethod#parseButtonContent
(data: RawNode)
src/parser/classes/SubscribeButtonView.ts:74
↓ 2 callersMethod#parseOther
()
src/parser/classes/MusicResponsiveListItem.ts:158
↓ 2 callersMethod#pollLivechat
()
src/parser/youtube/LiveChat.ts:139
↓ 2 callersFunctionbase64ToU8
(base64: string)
src/utils/Utils.ts:250
↓ 2 callersFunctiondeepCompare
(obj1: any, obj2: any)
src/utils/Utils.ts:67
next →1–100 of 1,594, ranked by callers