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.3.2 to 0.3.3

src/helpers.js

2

package.json
{
"name": "imdbtr",
"version": "0.3.2",
"version": "0.3.3",
"description": "IMDB on terminal",

@@ -5,0 +5,0 @@ "license": "MIT",

'use strict';
const helpers = require('./helpers');
const got = require('got');

@@ -9,17 +10,2 @@ const provider = 'http://www.omdbapi.com/?';

const normalizeName = name => {
const nameList = name.split(' ', 2);
let normalizedList = [];
if (nameList.length > 1) {
normalizedList = nameList.map(currName => {
return encodeURI(currName);
});
normalizedList = normalizedList.join('+');
}
return normalizedList.toString();
};
const api = name => {

@@ -30,3 +16,3 @@ if (!name) {

const normalizedName = normalizeName(name);
const normalizedName = helpers.normalizeName(name);

@@ -33,0 +19,0 @@ const movie = got(`${provider}t=${normalizedName}`, {headers, json: true})

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