
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
imdb-search
Advanced tools
A wrapper on omdb module to easy select correct wanted item with all info
Use ES6 Promise for search and get a title info.
with npm:
$ npm install --save imdb-search
or with yarn:
$ yarn add imdb-search
const imdb = require('imdb-search');
// Search for a Movie, result is an array of movies
imdb.search('Doctor Strange')
.then(result => {
for (let movie of result) {
console.log(`${movie.id}: ${movie.title} - ${movie.year}`);
}
})
.catch(err => {
console.log(err);
});
// We can pass year and type as optional args to get right result
// Because of omdb dependency movies can have this types: `series, movie, episode`
imdb.search('Doctor Strange', 2016, 'movie')
.then(result => {
for (let movie of result) {
console.log(`${movie.id}: ${movie.title} - ${movie.year}`);
}
})
.catch(err => {
console.log(err);
});
// We can select item number in returned result
imdb.search('Doctor Strange', 2016, 'movie')
.then(result => {
return imdb.get(0); // Select first movie on the list
})
.then(movie => {
console.log(`${movie.title} - ${movie.year}`);
})
.catch(err => {
console.log(err);
});
// Get a movie with imdb id
imdb.get('tt1211837')
.then((movie) => {
console.log(`${movie.title} - ${movie.year}`);
})
.catch((err) => {
console.log(err);
});
search(name[, year, type])Use this method to search on imdb with name, you can pass year and type as optional arguments.
Search method return an array of movies.
Note: Each item of search array have one field namedid(internal id), use this id to get more info.
get(id)Use this method to get a movie from the list of movies on the last search
Note: id value can be an internal id or imdb specific id.
FAQs
A wrapper on omdb module to easy select correct wanted item with all info
We found that imdb-search demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.