UNPKG
themoviedatabase
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.1
1.0.0
an the movie db api wrapper using promisses
github.com/leon-4A6C/themoviedb
leon-4A6C/themoviedb
themoviedatabase
/
index.js
11 lines
(8 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
EasyApi
=
require
(
"easy-api-wrapper"
);
// creates an Tmdb class
class
Tmdb
extends
EasyApi
{
constructor
(apiKey) {
super
({
apiKey
: apiKey,
baseUrl
:
"api.themoviedb.org"
,
basePath
:
"/3"
,
endPoints
:
require
(
"./endPoints.json"
)}); } } module.exports = Tmdb;