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

youtubei.js / Types / EmitterOptions

Interface: EmitterOptions

Defined in: src/utils/javascript/JsExtractor.ts:15

Properties

disallowSideEffectInitializers?

optional disallowSideEffectInitializers: boolean | SideEffectPolicyOptions

Defined in: src/utils/javascript/JsExtractor.ts:26

When true or configured, replace unsafe initializers (calls, new, etc.) with undefined to avoid executing side-effectful code. Use { mode: 'loose' } to allow a broader set of expressions.


exportRawValues?

optional exportRawValues: boolean

Defined in: src/utils/javascript/JsExtractor.ts:35

When true, also export raw values of matched nodes.


forceVarPredeclaration?

optional forceVarPredeclaration: boolean

Defined in: src/utils/javascript/JsExtractor.ts:31

When true, emit a single var declaration for every variable encountered, even if it originally had an initializer.


maxDepth?

optional maxDepth: number

Defined in: src/utils/javascript/JsExtractor.ts:20

The maximum depth to traverse when emitting dependencies. If not specified, there is no limit on the depth.


rawValueOnly?

optional rawValueOnly: string[]

Defined in: src/utils/javascript/JsExtractor.ts:39

Array of names to skip emitting code/deps for, but still export the raw value.

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