UNPKG

@np-dev/youtubei-js

Version:

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

15 lines 423 B
import { Parser } from '../index.js'; import { YTNode } from '../helpers.js'; class PlaylistSidebar extends YTNode { constructor(data) { super(); this.items = Parser.parseArray(data.items); } // XXX: alias for consistency get contents() { return this.items; } } PlaylistSidebar.type = 'PlaylistSidebar'; export default PlaylistSidebar; //# sourceMappingURL=PlaylistSidebar.js.map