npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

airports-json

v1.0.0

Published

A comprehensive dataset of airports, countries, and regions in JSON format, including , with a script to generate data from CSV sources.

Downloads

974

Readme

Airports

Airports provides JSON datasets of airports, including name, coordinates, elevation, country, region, IATA code and GPS code. Created by the team at Jet Set Expert.

Features

Sample data

airports.json

[
  {
    "id": "12243",
    "ident": "5A8",
    "type": "medium_airport",
    "name": "Aleknagik / New Airport",
    "latitude_deg": "59.2826004028",
    "longitude_deg": "-158.617996216",
    "elevation_ft": "66",
    "continent": "NA",
    "iso_country": "US",
    "iso_region": "US-AK",
    "municipality": "Aleknagik",
    "scheduled_service": "yes",
    "gps_code": "5A8",
    "iata_code": "WKK",
    "local_code": "5A8",
    "home_link": "",
    "wikipedia_link": "https://en.wikipedia.org/wiki/Aleknagik_Airport",
    "keywords": ""
  },
  ...
]

countries.json

[
  {
    "id": "302672",
    "code": "AD",
    "name": "Andorra",
    "continent": "EU",
    "wikipedia_link": "https://en.wikipedia.org/wiki/Andorra",
    "keywords": "Andorran airports"
  },
  ...
]

regions.json

[
  {
    "id": "302811",
    "code": "AD-02",
    "local_code": "02",
    "name": "Canillo Parish",
    "continent": "EU",
    "iso_country": "AD",
    "wikipedia_link": "https://en.wikipedia.org/wiki/Canillo",
    "keywords": "Airports in Canillo Parish"
  },
  ...
]

Installation

Install the package using npm:

npm install airports-json

Usage

After installing the package, you can import and use the datasets in your project like this:

const { airports, regions, countries } = require("airports-json");

// Use the datasets as needed
console.log(airports);
console.log(regions);
console.log(countries);

Generating Datasets with Custom Airport Types

By default, the package includes data for medium and large airports. If you need to include other airport types or a custom set of types, you can generate the datasets with the --types flag followed by a comma-separated list of types.

First, clone the repository:

git clone https://github.com/JetSetExpert/airports.git
cd airports

Install the dependencies:

npm install

Generate the datasets with the desired airport types:

node src/generate.js --types small_airport,medium_airport,large_airport

Replace small_airport,medium_airport,large_airport with the desired types. Possible types are:

  • balloonport
  • closed
  • heliport
  • large_airport
  • medium_airport
  • seaplane_base
  • small_airport

Links & Resources

Jet Set Expert
airports-json on GitHub
airports-json on NPM
airports-json on Aliyun
airports-json on TAONPM
airports-json on jsDlivr
airports-json on Snyk
airports-json on Libraries.io
airports-json on RunKit
airports-json on npm trends
airports-json on Package Phobia
airports-json on Skypack
airports-json on CNPM
airports-json on githubmemory
airports-json on npm.io
airports-json on Pkg Stats