var api = new FlightStatsAPI({ appId: 'xxxxxxxxxx', apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxx', // optional, defaults to `node flightstats/{package.version}` userAgent: 'FlightBot',})
Get a list of airlines
// Options are optional;// defaults to retrieve all currently active airlinesapi.getAirlines( options, callback )// Options (iata, icao, fs are mutually exclusive):var options = { all: {Boolean}, date: {Date}, iata: {String}, icao: {String}, fs: {String},}