New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

imdbtr

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imdbtr - npm Package Compare versions

Comparing version 0.4.0 to 1.0.0

readme.md

10

package.json
{
"name": "imdbtr",
"version": "0.4.0",
"version": "1.0.0",
"description": "IMDB on terminal",

@@ -26,6 +26,6 @@ "license": "MIT",

"chalk": "^1.1.3",
"figures": "^1.7.0",
"figures": "^2.0.0",
"got": "^6.3.0",
"minimist": "^1.2.0",
"ora": "^0.2.3"
"ora": "^0.3.0"
},

@@ -38,5 +38,5 @@ "keywords": [

"devDependencies": {
"ava": "^0.15.2",
"ava": "^0.16.0",
"sinon": "^1.17.4",
"xo": "^0.16.0"
"xo": "^0.17.0"
},

@@ -43,0 +43,0 @@ "bin": {

@@ -6,3 +6,3 @@ 'use strict';

const provider = 'http://www.omdbapi.com/?';
const provider = 'http://www.theimdbapi.org/api/find/movie?';
const headers = {

@@ -19,6 +19,6 @@ 'user-agent': 'https://www.github.com/fernahh/imdbtr'

const movie = got(`${provider}t=${normalizedName}`, {headers, json: true})
const movie = got(`${provider}title=${normalizedName}`, {headers, json: true})
.then(response => {
const result = response.body;
return result.Response === 'False' ? false : result;
return result === null ? false : result[0];
})

@@ -25,0 +25,0 @@ .catch(err => {

@@ -23,11 +23,12 @@ 'use strict';

const movieRes = `
${chalk.black.bgYellow.bold(result.Title)} (${result.Year}) on IMDb:
${chalk.black.bgYellow.bold(result.title)} (${result.year}) on IMDb:
${chalk.yellow(`${figures.star} ${result.imdbRating}`)}
${chalk.yellow(`${figures.star} ${result.rating}`)}
Director: ... ${result.Director}
Writer: ..... ${result.Writer}
Actors: ..... ${result.Actors}
Genre: ...... ${chalk.italic(result.Genre)}
Plot: ....... ${result.Plot}
Duration: .... ${result.length} min
Director: .... ${result.director}
Writer: ...... ${result.writers.join(', ')}
Stars: ....... ${result.stars.join(', ')}
Genre: ....... ${chalk.italic(result.genre.join(', '))}
Storyline: ... ${result.storyline}
`;

@@ -34,0 +35,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc