The `airport-data` package provides a static JSON snapshot of airport information derived from the OpenFlights Airports Database. It offers a structured array of airport objects, each containing details such as ID, name, city, country, IATA and ICAO codes, geographical coordinates, altitude, timezone, and type. The current stable and only major version is 1.0.1, published over 8 years ago (as of 2026). This package serves as a direct, unmaintained dump of data from its time of publication, with no ongoing updates or release cadence. Its key differentiator is its simplicity as a pre-packaged JSON array, suitable for applications requiring historical or non-real-time airport data, but critically, it does not reflect any changes or additions to the global airport landscape since its last release.
npm install airport-dataVerified import paths — ran on the pinned version, not inferred.
Demonstrates loading the static airport data and performing basic filtering and lookup operations using CommonJS `require`.
For current airport data, use actively maintained alternatives or fetch directly from up-to-date sources like the OpenFlights API or other contemporary data providers.
In an ESM context, consider using `import * as airports from 'airport-data'` or directly importing the JSON file if your build system or Node.js version supports it (`import airports from 'airport-data/airports.json'`). Ensure your build tools are configured for CJS interoperability.
Ensure the package is installed in your project: `npm install airport-data`.
Use `import * as airports from 'airport-data'` for namespace import in ESM, or stick to `const airports = require('airport-data')` in CommonJS environments.No dependency data recorded yet.