Socket
Socket
Sign inDemoInstall

tmdb-tv

Package Overview
Dependencies
2
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tmdb-tv

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


Version published
Weekly downloads
3
Maintainers
1
Install size
2.48 MB
Created
Weekly downloads
 

Readme

Source

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)

Keywords

FAQs

Last updated on 11 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc