0.0.1 • Published 6 years ago
imdb-prime v0.0.1
imdb-prime
This package is not intended to be used in the browser.
Installation
yarn add imdb-prime
# or
npm install imdb-prime
Usage
const imdb = require('imdb-prime')
await imdb.title('tt5057054')
// {
// id: 'tt5057054',
// name: 'Jack Ryan',
// year: '2018–',
// is_prime_video: true,
// prime_url: 'https://www.imdb.com/offsite/...',
// url: 'https://www.imdb.com/title/tt5057054/',
// }
await imdb.search('home alone')
// {
// q: 'home_alone',
// results: [
// {
// id: 'tt0099785',
// name: 'Home Alone',
// type: 'feature',
// year: 1990,
// year_range: undefined,
// stars: 'Macaulay Culkin, Joe Pesci',
// url: 'https://www.imdb.com/title/tt0099785/'
// },
// {
// id: 'tt0104431',
// name: 'Home Alone 2: Lost in New York',
// type: 'feature',
// year: 1992,
// year_range: undefined,
// stars: 'Macaulay Culkin, Joe Pesci',
// url: 'https://www.imdb.com/title/tt0104431/'
// },
// ...
// ]
// }