imdb-id

2.0.1 • Public • Published
Current Version

imdb-id

Get IMDB ID from Movie Title

Installation:

Current stable release: 2.x

yarn: yarn add imdb-id
npm: npm install --save imdb-id

Loading the module:

const imdbId = require('../index.js');

Usage:

The function takes a movie title as parameter:

await imdbId("H2G2")

Example:

const imdbId = require('../index.js');

(async () =>  {
  const movieTitle = 'H2G2'
  try {
    const id = await imdbId(movieTitle);
    console.log(`The IMDB Id of ${movieTitle} is ${id}`)
  } catch (e) {
    console.error('Error :', e)
  }
})();

Package Sidebar

Install

npm i imdb-id

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

3.09 kB

Total Files

4

Last publish

Collaborators

  • ebouther