npm.io
0.3.0 • Published 5 years ago

node-imdb

Licence
MIT
Version
0.3.0
Deps
2
Size
14 kB
Vulns
23
Weekly
0
Stars
1

node-imdb

a nodejs library to get data from imdb

Example

const { searchMovie, getMovie } = require('node-imdb');
// or
import { searchMovie, getMovie } from 'node-imdb';
async function searchMovieExample(title) {
  const result = await searchMovie(title);
  console.log(result);
}

searchMovieExample('Game of Thorns');

async function getMovieExample(id) {
  const result = await getMovie(id);
  console.log(result);
}

getMovieExample('tt0944947');

Keywords