YouTube.js
Guide
Discord
❤️ Sponsor
GitHub
Guide
Discord
❤️ Sponsor
GitHub

youtubei.js / Types / ExtractionConfig

Interface: ExtractionConfig

Defined in: src/utils/javascript/JsAnalyzer.ts:5

Properties

collectDependencies?

optional collectDependencies: boolean

Defined in: src/utils/javascript/JsAnalyzer.ts:14

When false, dependency resolution is not enforced and extractions are marked as ready immediately when stopWhenReady is true.


friendlyName?

optional friendlyName: string

Defined in: src/utils/javascript/JsAnalyzer.ts:23

Name for easier identification of extractions.


match()

match: (node) => boolean | Node

Defined in: src/utils/javascript/JsAnalyzer.ts:9

Predicate that determines whether the current node should be considered a match.

Parameters

node

Node

Returns

boolean | Node


stopWhenReady?

optional stopWhenReady: boolean

Defined in: src/utils/javascript/JsAnalyzer.ts:19

When true, traversal stops once the extraction is matched and all its dependencies (when collectDependencies=true) resolve. Only useful for small functions/vars without too many dependencies.

Edit this page
Last Updated: 10/12/25, 3:23 PM