Skip to main content

Airline Codes

Fast, lightweight npm package for airline IATA and ICAO code lookups with a powerful Backbone Collection interface.

Features

IATA & ICAO Lookups

Query airlines by IATA or ICAO codes with built-in methods

Backbone Collection

Leverage Backbone Collection methods like findWhere, sort, and filter

Always Up-to-Date

Automatic weekly data synchronization from OpenFlights.org

Data Quality

Country name normalization and data quality corrections built-in

Quick Example

const airlines = require('airline-codes');

// Find an airline by IATA code
const westjet = airlines.findWhere({ iata: 'WS' });
console.log(westjet.get('name'));
// => "WestJet"

// Find by ICAO code
const delta = airlines.findWhere({ icao: 'DAL' });
console.log(delta.get('name'));
// => "Delta Air Lines"

// Get all active airlines
const active = airlines.where({ active: 'Y' });
console.log(active.length);

Get Started

Installation

Install via npm, yarn, or pnpm

Quick Start

Get up and running in 60 seconds

API Reference

Explore the complete API

Build docs developers (and LLMs) love