1.0.2 • Published 7 years ago

movie-search v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

movie-search

Searches the MovieDB by using keywords.

Install

$ npm install movie-search

Usage

'use strict';
const movie = require('movie-search');
const config = require('./config.json');

movie.config(config.movie_db_key);
movie.search("The Godfather Part", function(results) {
	let movies = [];
	results.map(x => movies.push({"date":x.release_date,"title": x.title}));
	console.log(movies);
});

// [ 
// 	{ date: '1974-12-20', title: 'The Godfather: Part II' },
// 	{ date: '1990-12-24', title: 'The Godfather: Part III' },
// 	{ date: '1972-03-14', title: 'The Godfather' } 
// ]