1.0.2 • Published 5 years ago

@mahomuri/yt-playlist-fetcher v1.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

YouTube Playlist Fetcher

YouTube Playlist Fetcher is yet again another library that fetched a playlist and returns a big array containing its details

Usage

const ytfetcher = require('@mahomuri/yt-playlist-fetcher');

ytfetcher('YouTube API Key', 'Playlist ID')
.then(playlistItems => {
    console.log(playlistItems.length);
    console.log(playlistItems);
});

Options

  • maxResults - The maxmimum amount of results to return from the playlist, starting from 0.

Installation

npm install @mahomuri/yt-playlist-fetcher

Testing

To test it, make sure to change the process.env.API_KEY to you own API Key then type:

npm test