JorrinKievit / tmdb-js

A typesafe API wrapper for the TheMovieDatabase API for Node and the Web
10 stars 1 forks source link

tmdb-js

This is the monorepo for the tmdb-js-web and tmdb-js-node packages. Both packages are used to interact with the TMDB API. The tmdb-js-web package is used for web applications, and the tmdb-js-node package is used for Node.js applications. Both packages are fully-typed TypeScript wrappers for the TMDB API. Currently all endpoints are supported:

Getting started

For documentation on how to use the tmdb-js-web and tmdb-js-node packages, please see the README files in the packages folder.

tmdb-js-web: README.md tmdb-js-node: README.md

Useful information

The tmdb-js-web package uses the Fetch API to make requests to the TMDB API. This means that the package is only supported in browsers that support the Fetch API. You can check browser support here.

The tmdb-js-node package uses the https module to make requests to the TMDB API. This means that the package is only supported in Node.js versions that support the https module. You can check Node.js support here.

The V4 endpoints require an access token. You can get an access token by following the instructions here.

Build

To build all apps and packages, run the following command:

pnpm run build

Develop

To develop all apps and packages, run the following command:

pnpm run dev