Skip to content

🎥 Install it from GitHub please it's not from NPMJS

License

Notifications You must be signed in to change notification settings

nazimboudeffa/imdb-es5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub package.json version

IMDB ES5

An ES5 NodeJS IMDB API for getting information on your favourite movies!

Based on the last ES5 version of https://github.com/mhsjlw/imdb

Installing

Install via npm

$ npm install github:nazimboudeffa/imdb-es5

Running / Building

To run the example:

$ npm install
$ node examples/movie.js

API / Usage

Provide the IMDB ID and go! Also see the examples/ folder for inspiration!

var imdb = require('imdb-es5');

imdb('tt0110912', function(err, data) {
  if(err)
    console.log(err.stack);

  if(data)
    console.log(data);
});

This will return an object similar to this:

{
  title: 'Pulp Fiction',
  year: '1994',
  contentRating: 'N/A',
  runtime: '2h 34min',
  description: 'The lives of two mob hitmen, a boxer, a gangster and his wife, and a pair of diner bandits intertwine in four tales of violence and redemption.',
  rating: '8.9',
  poster: 'https://m.media-amazon.com/images/M/MV5BNGNhMDIzZTUtNTBlZi00MTRlLWFjM2ItYzViMjE3YzI5MjljXkEyXkFqcGdeQXVyNzkwMjQ5NzM@._V1_UY268_CR1,0,182,268_AL_.jpg',
  genre: [ 'Crime', ' Drama ' ],
  director: 'N/A',
  metascore: '94',
  writer: 'N/A'
}

About

🎥 Install it from GitHub please it's not from NPMJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published