Skip to content

kshvmdn/movieman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

movieman npm version

Retrieve movie information via IMDb. Features module component as well as CLI.

Usage

Module

  • Install via npm.

    $ npm i -S movieman
  • Movieman supports both Promises and error-first callbacks. Use whichever you prefer.

    const movieman = require('movieman');
    
    movieman.getMovie().by.title('the social network', (err, res) => {
      if (err) throw err;
      console.log(res); //=> http://www.omdbapi.com/?t=the%20social%20network&i=tt0096895&plot=short&r=json
    });
    
    movieman.getMovie().by.id('tt0468569')
      .then((resp) => {
        console.log(resp) //=> http://www.omdbapi.com/?i=tt0468569&plot=short&r=json
      })
      .catch((e) => {
        throw e;
      });

CLI

  • Install globally via npm.
$ npm i -g movieman
$ movieman --help
  
  Usage
    $ movieman <title> [--help] [--version]

  Options
    -h --help      Display this help dialog.
    -v --version   Display the current version.

  Example
    $ movieman the social network

Contribute

Feel free to open an issue or make a PR.

About

Node module and CLI for retrieving movie data via IMDb.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published