0.3.0 • Published 8 years ago

tvmaze v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

tvmaze Build Status

Node wrapper for tvmaze that returns promises

Installation

npm install tvmaze --save

Usage

var TVMaze = require('tvmaze');

var tvm = new TVMaze();

// Search for a show
tvm.findShow('futurama').then( function (shows) {
  console.log(shows);
});

// Get a show by tvmaze id
tvm.getShow(538).then( function (show) {
  console.log(show);
});

// Get episodes for a show by tvmaze id
tvm.getEpisodes(538).then( function (episodes) {
  console.log(episodes);
});

// Get specific episode for a show by tvmaze episode id
tvm.getEpisodeById(49411).then( function (episode) {
  console.log(episode);
});

// Get a show by tvmaze id and include cast
tvm.getShow(538, ['cast']).then( function (show) {
  console.log(show);
});

// Get a show by tvmaze id and include cast and episodes
tvm.getShow(538, ['cast', 'episodes']).then( function (show) {
  console.log(show);
});
0.3.0

8 years ago

0.2.0

9 years ago

0.1.0

9 years ago