Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Node.js module to connect to tvrage.com's API.
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
README.md
makefile
package.json
tvrage.coffee
usage.coffee

README.md

tvrage

Search and retrieve television data from TVRAGE

tvrage = require './tvrage'

tv = new tvrage.Proxy()

tv.findOne 'alias', (err, show) ->
  console.log 'findOne for "alias":'
  cosnole.log "#{show.name}: #{show.network}, #{show.status}" # Alias: ABC, Canceled/Ended
  console.log show.genres # [ 'Action', 'Adventure', 'Drama' ]
  console.log show.akas[0] # { name: 'A Vingadora', country: 'PT' }

tv.fullShowInfo 3548, (err, show) ->
  console.log show.seasons.length, 'seasons of Firefly' # 1 season of Firefly

tv.search 'battlestar', (err, results) ->
  console.log "#{results.length} results for 'battlestar' search" # 5 results...
  console.log results[0]

See usage.coffee and the tests for more examples.

Something went wrong with that request. Please try again.