
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
airports-nodejs
Advanced tools
A comprehensive library providing easy retrieval of airport data based on IATA, ICAO, city codes, country codes, and continents.
A comprehensive library providing easy retrieval of airport data based on IATA, ICAO, city codes, country codes, and continents. Ideal for developers building applications related to aviation, travel, and geography.
You can install airports-nodejs
using npm:
npm install airports-nodejs
For detailed instructions on how to use this library in different environments, please refer to the following links:
Here's how you can use the library:
const airportData = require('airports-nodejs');
// Retrieve airport data using IATA code
const airportByIATA = airportData.getAirportByIata("AAA");
console.log(airportByIATA);
// Retrieve airport data using ICAO code
const airportByICAO = airportData.getAirportByIcao("NTGA");
console.log(airportByICAO);
// Fetch data using city codes
const airportByCityCode = airportData.getAirportByCityCode("NYC");
console.log(airportByCityCode);
// Fetch data using country codes
const airportByCountryCode = airportData.getAirportByCountryCode("US");
console.log(airportByCountryCode);
// Retrieve data based on continents
const airportByContinent = airportData.getAirportByContinent("AS");
console.log(airportByContinent);
For Chennai International Airport:
Field Name | Data |
---|---|
IATA | MAA |
ICAO | VOMM |
Time Zone | Asia/Kolkata |
City Code | MAA |
Country Code | IN |
Name | Chennai International Airport |
Latitude | 12.99 |
Longitude | 80.1693 |
Altitude (in feet) | 52 |
State | Tamil Nadu |
City | Pallavaram |
County | Kancheepuram |
State Code | Tamil Nadu |
Airport Type | large_airport |
Continent | AS |
State Abbreviation | IN-TN |
International | TRUE |
Wikipedia Link | Wikipedia |
Official Website | Chennai Airport |
Location ID | 12513629 |
Phone Number | 044-2340551 |
Runway Length (in meters) | 10050 |
Flightradar24 | Flightradar24 |
Radarbox | Radarbox |
Flightaware Link | Flightaware |
Field Name | Data |
---|---|
IATA | SIN |
ICAO | WSSS |
Time Zone | Asia/Singapore |
City Code | SIN |
Country Code | SG |
Name | Singapore Changi Airport |
Latitude | 1.35019 |
Longitude | 103.994 |
Altitude (in feet) | 22 |
State | Singapore |
City | Singapore |
County | Singapore |
State Code | South East |
Airport Type | large_airport |
Continent | AS |
State Abbreviation | SG-04 |
International | TRUE |
Wikipedia Link | Wikipedia |
Official Website | Changi Airport |
Location ID | 12517525 |
Phone Number | (65) 6542 1122 |
Runway Length (in meters) | 13200 |
Flightradar24 | Flightradar24 |
Radarbox | Radarbox |
Flightaware | Flightaware |
git clone https://github.com/aashishvanand/airports-nodejs.git
cd airports-nodejs
npm install
npm run build
npm test
Issue: "Module not found: Error: Can't resolve 'babel-loader'". Solution: Ensure that you have installed all the necessary dependencies. If the issue persists, reinstall the library.
Issue: "Error: Automatic publicPath is not supported in this browser". Solution: Ensure that you're using the library in a supported environment (Node.js or a modern browser).
If you encounter other issues, consider raising an issue on the GitHub repository.
This project is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) - see the LICENSE file for details.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
FAQs
A comprehensive library providing easy retrieval of airport data based on IATA, ICAO, city codes, country codes, and continents.
The npm package airports-nodejs receives a total of 0 weekly downloads. As such, airports-nodejs popularity was classified as not popular.
We found that airports-nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.