New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tmdb-tv

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmdb-tv

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

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 11 Oct 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc