🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

tvco

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tvco

CLI tool to find actors that are in two TV Shows

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

TV Cross Over

Find actors in two TV Shows

A Node module that finds actors that play in a set of TV shows. Works as Node module and CLI command.

Installing

$ npm install --global tvco

Usage

As command-line app, it takes two arguments

$ tvco 'game of thrones' 'the wire'
Aidan Gillen:
  Plays Petyr Baelish in Game of Thrones
  Plays Councilman Thomas "Tommy" Carcetti in The Wire

As Node module, a promise is returned with an object containing more details about the TV shows and a list of matched actors and their roles.

const tvco = require('tvco');

tvco('game of thrones', 'the wire')
.then((data)  => {
  data.matches.forEach((match) => {
    console.log((`${match.actor.name}:`));
    match.roles.forEach((role) => {
      console.log((`  Plays ${role.name} in ${role.show}`));
    });
  });
})

Tasks

  • Enhance the match finding method greatly
  • Searching with IMDB id

Authors

  • Fabio Pigagnelli - Initial work

License

This project is licensed under the MIT License

Acknowledgments

  • The public API from TVmaze.com is used to query data

Keywords

tv

FAQs

Package last updated on 30 Dec 2017

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