Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
ez-movie-node
Advanced tools
Readme
ez-movie-node is a TMDb API wrapper. I designed this because other Javascript or Node packages are quite outdated (the most recent is from August 2017) so I thought I make one on my own to accomodate recent updates.
The package is still Work in Progress, so don't expect everything to work correctly (see notes below).
npm i ez-movie-node
const EZMovie = require("ez-movie-node")
const ezmovie = new EZMovie(YOUR_API_KEY)
const main = async () => {
const response = await ezmovie.certification.movie({})
const body = await response.json()
// OR
ezmovie.ceritifcaiton.movie({})
.then(res => res.json())
.then(body => // do stuff)
}
As you can see the methods are promises so either doing .then() or await works. Don't forget to catch errors.
NOTE: Right now there is a problem within the system which prevents running methods which have optional query parameters. If you pass nothing into the method it will error. To prevent erroring always pass an empty object (you can leave methods which don't have any parameters empty). This will be fixed and you won't see this message in the future.
For instance ezmovie.certification.movie
has no optional parameters so doing ezmovie.certification.movie()
is valid.
// ezmovie.company.details has 1 required parameter (just like in the API documentation)
// company_id: integer
// This is how you make a call like this
const main = async () => {
const response = await ezmovie.company.details({ company_id: 5})
const body = await response.json()
}
The methods are inline with the way the API documentation from TMDb is structured. Please see there for information on what parameters you need to pass in.
endpoint | methods |
---|---|
certification | movie |
tv | |
changes | movie |
tv | |
person | |
collection | details |
images | |
translations | |
company | details |
alternativeNames | |
images | |
configuration | APIConfiguration |
countries | |
jobs | |
languages | |
primaryTranslations | |
timezones | |
credits | details |
discover | movie |
tv | |
find | findByID |
genre | movies |
tv | |
keyword | details |
movies |
Half of the endpoints are missing (WIP). Also only get requests are allowed.
endpoint = keyword method = movies
ezmovie.keyword.movies()
FAQs
A TMDb API wrapper
The npm package ez-movie-node receives a total of 0 weekly downloads. As such, ez-movie-node popularity was classified as not popular.
We found that ez-movie-node 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.