UNPKG

@myno_21/imdb-scraper

Version:

Get imdb information easily & quickly.

45 lines (44 loc) 1.37 kB
import { getMovie } from "../functions/getMovie.js"; import getPictures from "../functions/getImages.js"; import getTrailer from "../functions/getTrailer.js"; import getMovieViaName from "../functions/getMovieViaName.js"; import getCast from "../functions/getCast.js"; import getSimilar from "../functions/getSimilar.js"; import getShowViaName from "../functions/getShowViaName.js"; import getShow from "../functions/getShow.js"; class Client { static version; async getMovie(id) { const results = await getMovie(id); return results; } async getMovieViaName(query) { const results = await getMovieViaName(query); return results; } async getPictures(id) { const results = await getPictures(id); return results; } async getTrailer(id) { const result = await getTrailer(id); return result; } async getShow(id) { const resultValue = await getShow(id); return resultValue; } async getShowViaName(query) { const result = await getShowViaName(query); return result; } async getCast(id) { const result = await getCast(id); return result; } async getSimilar(id) { const result = await getSimilar(id); return result; } } export { Client };