name-to-imdb

2.1.1 • Public • Published

name-to-imdb

Map names of movies/series to IMDB IDs

npm install name-to-imdb

Usage: nameToImdb(args, callback)

args - string of the name or object with name/year/type - { name: "The Devil Bat", year: 1940, type: "movie" }

args.providers - an array of providers to search in; possible options are metadata and imdb; default is ["metadata", "imdb"]

Example

var nameToImdb = require("name-to-imdb");
nameToImdb({ name: "south park" }, function(err, res, inf) { 
    console.log(res); // prints "tt0121955"
    console.log(inf); // inf contains info on where we matched that name - e.g. locally, or on google
})

install

npm i name-to-imdb

Downloadsweekly downloads

190

version

2.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability