~timharek/deno-omdb

Access OMDb's API for getting details about movies and TV shows with Deno.
fix: Make schema work better with "N/A"
ci: Cleaner way to check for new release tag

clone

read-only
https://git.sr.ht/~timharek/deno-omdb
read/write
git@git.sr.ht:~timharek/deno-omdb

You can also use your local clone with git send-email.

JSR sourcehut GitHub mirror

#deno-omdb

Access OMDb's API for getting details about movies and TV shows.

#Usage

Remember to set OMDB_API enviroment variable.

// your_script.ts
import { getTitle } from "jsr:@timharek/omdb";

const result = await getTitle({ titleOrId: "Spider-Man" });

#CLI

#Installation

deno install --allow-net=www.omdbapi.com --allow-env=OMDB_API \
  -n omdb jsr:@timharek/omdb/cli

#Usage

# Using name
omdb --api <api_key> 'Spider-Man Far from home'
# Using IMDb id
omdb --api <api_key> tt6320628
# Another way to specify the API key
OMDB_API=<api_key> omdb 'Spider-Man'
# Using name and getting JSON output
omdb --api <api_key> --json 'Spider-Man Far from home'

See omdb -h for all available flags and commands.