0.1.0 • Published 9 years ago

aerials v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

Aerial

Get a random aerial video à la Apple TV.

Installation

npm i --save aerials

var aerials = require('aerials')

Usage

options

  • video_url — string (ie. 'b4-3')

get(options, callback)

A random aerial video

aerials.get(function (err, aerial) {
  if (err) throw err
  console.log('random aerial:', aerial)
})

A random aerial video of San Franscisco at night

aerials.get({ 'city': 'San Francisco', 'timeOfDay': 'night' }, function (err, aerial) {
  if (err) throw err
  console.log('random aerial in San Francisco at day:', aerial)
})

The best aerial video

aerials.get('b4-3', function (err, aerial) {
  if (err) throw err
  console.log('best aerial:', aerial)
})

options

  • id — string (ie. 'b4-3')
  • city — string (ie. 'San Francisco')
  • timeOfDay — string (either 'day' or 'night')

License

MIT

0.1.0

9 years ago