Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jtmdb

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jtmdb

A javascript client library for The Movie Database api

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Travis build status NPM version

Jtmdb - A Javascript client library for The Movie Database API

You want to interact with The Movie Database's API, and you want to use Typescript? Oh, you are in for a treat. Jtmdb is the library to do just that.

Installation

npm i jtmdb

Configuration

Jtmdb will only work with your API Read Access Token (v4 auth).

import { Jtmdb } from 'jtmdb';

const jtmdb = new Jtmdb({
  v4AccessToken: 'yourTmdbV4AccessToken'
})

Usage

Jtmdb has three generic methods (get, post, and delete) to handle interacting with endpoints not yet implemented.

let results = await jtmdb.get('/version/resource', {
  query: 'parameters'
})

results = await jtmdb.post('/version/resource', {
  body: 'values'
}, {
  query: 'parameters'
})

results = await jtmdb.delete('/version/resource', {
  query: 'parameters'
})

The intention for Jtmdb is to have all TMDb endpoints implemented with the following format:

jtmdb.{module}.{method}

For example:

const results = await jtmdb.search.multi({
  query: 'Fight Club'
})

Currently, the following modules of TMDb API are implemented:

  • List (v4) - jtmdb.list
  • Movies (v3) - jtmdb.movies
  • People (v3) - jtmdb.people
  • Search (v3) - jtmdb.search

Keywords

FAQs

Package last updated on 24 Apr 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc