TMDBrJS is a JavaScript library for interacting with the TMDB API.
Important Notice:
This package is a personal project and may not be actively maintained or thoroughly documented. Use it at your own risk. Contributions are welcome, but please note that there might be limited support and updates.
To use TMDBrJS, you need to have Node.js installed. Then, you can install the library using npm:
npm install tmdbrjs
To instantiate the client, you need to provide your TMDB API key. You can obtain an API key by creating an account on the TMDB website.
import { Client } from 'tmdbrjs';
const apiKey = 'YOUR_API_KEY';
const client = new Client({ apiKey });
Here are a few examples of how to use the TMDBrJS library:
const movieId = 12345;
const movie = await client.movies.getById(movieId);
console.log(movie);
const personId = 67890;
const results = await client.people.getById(personId);
console.log(results);
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
TMDBrJS is licensed under the MIT License. See the LICENSE file for more information.