JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q31067F
  • License ISC

TMDB (The Movie Database) API wrapper for TV Shows only.

Package Exports

  • tmdb-tv

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tmdb-tv) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tmdb-tv

TMDB (The Movie Database) API wrapper for TV Shows only.

Install

$ npm install tmdb-tv

Import

let TMDB = require('tmdb-tv')("YOUR_TMDB_API_KEY");

Example

var results = await TMDB.Search("Lucifer");
//  results returns an array of shows.
console.log(results);

var Show = TMDB.Show(results[0].id);
var show = await Show.GetDetails();
console.log(show);
show.seasons.forEach(async(season_no) => {
    var Season = Show.Season(season_no);
    var season = await Season.GetDetails();
    console.log(season);
    season.episodes.forEach(async(episode_no) => {
        var Episode = Season.Episode(episode_no);
        var episode = await Episode.GetDetails();
        console.log(episode);
    });
});

Basic usage of each method can be found in the test document "test/app.js"

Useful Information

For examples on what each object is returned, check out tmdb api documentation here: (https://developers.themoviedb.org/3/tv)