youtubei.js / Types / ExtractionConfig
Interface: ExtractionConfig
Properties
collectDependencies?
optional
collectDependencies:boolean
When false
, dependency resolution is not enforced and extractions are marked as ready immediately when stopWhenReady
is true.
Defined in
src/utils/javascript/JsAnalyzer.ts:14
friendlyName?
optional
friendlyName:string
Name for easier identification of extractions.
Defined in
src/utils/javascript/JsAnalyzer.ts:23
match()
match: (
node
) =>boolean
|Node
Predicate that determines whether the current node should be considered a match.
Parameters
• node: Node
Returns
boolean
| Node
Defined in
src/utils/javascript/JsAnalyzer.ts:9
stopWhenReady?
optional
stopWhenReady:boolean
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.