Neighbor's Preppy Maltese
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    name-to-imdbpublic

    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

    62

    version

    2.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar