1.3.0 • Published 8 years ago

movieman v1.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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.

1.3.0

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago