How to use ytpl - 1 common examples

To help you get started, we’ve selected a few ytpl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sogehige / sogeBot / src / bot / systems / songs.ts View on Github external
return new Promise((resolve, reject): any => {
        ytpl(playlist, { limit: Number.MAX_SAFE_INTEGER }, function (err, playlist: { items: any[] }) {
          if (err) {
            reject(err);
          }
          resolve(playlist);
        });
      });
    };

ytpl

Simple package to resolve YouTube playlists - no strings attached.

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular ytpl functions