npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@svperuser/omdb-api-wrapper

v1.0.0

Published

A wrapper to work with the OMDB API

Downloads

13

Readme

OMDB API Wrapper

A wrapper library to work with the OMDB API

Installation

% npm install @svperuser/omdb-api-wrapper

Quick start with callbacks

const omdb = require('omdb-api-wrapper')

omdb.findOneByTitle('jaws', (err, movie) => {
  console.log(movie);
})
{
  Title: 'Jaws',
  Year: '1975',
  Rated: 'PG',
  Released: '20 Jun 1975',
  Runtime: '124 min',
  Genre: 'Adventure, Thriller',
  Director: 'Steven Spielberg',
  Writer: 'Peter Benchley, Carl Gottlieb',
  Actors: 'Roy Scheider, Robert Shaw, Richard Dreyfuss',
  Plot: "When a killer shark unleashes chaos on a beach community off Long Island, it's up to a local sheriff, a marine biologist, and an old seafarer to hunt the beast down.",
  Language: 'English',
  Country: 'United States',
  Awards: 'Won 3 Oscars. 15 wins & 20 nominations total',
  Poster: 'https://m.media-amazon.com/images/M/MV5BMmVmODY1MzEtYTMwZC00MzNhLWFkNDMtZjAwM2EwODUxZTA5XkEyXkFqcGdeQXVyNTAyODkwOQ@@._V1_SX300.jpg',
  Ratings: [
    { Source: 'Internet Movie Database', Value: '8.1/10' },
    { Source: 'Rotten Tomatoes', Value: '98%' },
    { Source: 'Metacritic', Value: '87/100' }
  ],
  Metascore: '87',
  imdbRating: '8.1',
  imdbVotes: '584,069',
  imdbID: 'tt0073195',
  Type: 'movie',
  DVD: '14 Jun 2005',
  BoxOffice: '$260,758,300',
  Production: 'N/A',
  Website: 'N/A',
  Response: 'True'
}
omdb.findManyByTitle('jaws'), (err, res => {
  console.log(res)
})
{
  Search: [
    {
      Title: 'Jaws',
      Year: '1975',
      imdbID: 'tt0073195',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BMmVmODY1MzEtYTMwZC00MzNhLWFkNDMtZjAwM2EwODUxZTA5XkEyXkFqcGdeQXVyNTAyODkwOQ@@._V1_SX300.jpg'
    },
    {
      Title: 'Jaws 2',
      Year: '1978',
      imdbID: 'tt0077766',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BN2U1MWE1NTMtYjQ2ZC00MTFmLWFmYjItODMyNGYxOTAyZmEzXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg'
    },
    {
      Title: 'Jaws: The Revenge',
      Year: '1987',
      imdbID: 'tt0093300',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BNGI1MTAxMWItOTE0OC00ZDhkLWE3Y2EtNjFiZmQ4NjQ1NGNkXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg'
    },
    {
      Title: 'Jaws 3-D',
      Year: '1983',
      imdbID: 'tt0085750',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BM2QwYjhiMzQtN2RiYS00MzgxLThmNzItMmJlNmMyMmQyYTA3XkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg'
    },
    {
      Title: 'Jaws 19',
      Year: '2015',
      imdbID: 'tt5033000',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BZjRmMzYzMTctZmE5MC00NWZjLTk5YmItYjQ1YTljMDdlYWYxXkEyXkFqcGdeQXVyNDcwNDE0Nzk@._V1_SX300.jpg'
    },
    {
      Title: 'Santa Jaws',
      Year: '2018',
      imdbID: 'tt8305692',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BZjdmZjQ2ODktMzUwYy00MWRlLThiZWYtMzFkODBlN2I1OWZhXkEyXkFqcGdeQXVyMzQ5OTc2Mzk@._V1_SX300.jpg'
    },
    {
      Title: 'Cruel Jaws',
      Year: '1995',
      imdbID: 'tt0112747',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BYTgxN2I4ZjEtMjAyZS00MzM5LWE0MjAtZmQ4M2UyMjgwODcwXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg'
    },
    {
      Title: 'Mako: The Jaws of Death',
      Year: '1976',
      imdbID: 'tt0074845',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BODJiZmI1Y2ItMjBiNS00NGU0LTk2NmQtNGQ0YmVkYjNiNjlmXkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg'
    },
    {
      Title: 'Jaws of Satan',
      Year: '1981',
      imdbID: 'tt0082580',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BMTUyOTY4Mzc0N15BMl5BanBnXkFtZTcwNTY2NjE2NA@@._V1_SX300.jpg'
    },
    {
      Title: 'In the Jaws of Life',
      Year: '1984',
      imdbID: 'tt0088312',
      Type: 'movie',
      Poster: 'https://m.media-amazon.com/images/M/MV5BMTIzNjU2ODUwOV5BMl5BanBnXkFtZTYwMzc2MDg4._V1_SX300.jpg'
    }
  ],
  totalResults: '124',
  Response: 'True'
}