UNPKG

@np-dev/youtubei-js

Version:

A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).

14 lines 464 B
import NavigationEndpoint from './NavigationEndpoint.js'; import { YTNode } from '../helpers.js'; class DownloadButton extends YTNode { constructor(data) { super(); this.style = data.style; this.size = data.size; this.endpoint = new NavigationEndpoint(data.command); this.target_id = data.targetId; } } DownloadButton.type = 'DownloadButton'; export default DownloadButton; //# sourceMappingURL=DownloadButton.js.map