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

ourairports

v0.1.3

Published

Find every airport in a country or region

Downloads

11

Readme

ourairports.com (csv to json)

Little script to convert the collected data from ourairports.com to json. You can use it also as npm module.

npm install ourairports --save

Because of the size of files (see Data) you have to install them yourself.

cd ./node_modules/ourairports
# to download all
npm run gulp --
# to download a specific file
npm run gulp -- [name - like airports]

It is recommended that you insert the latter step in your project package.json

{
  "script": {
    "install": "cd node_modules/ourairports && npm run gulp -- [name [name [...]]]"
  }
}

Usage

var ourairports = require('ourairports')

// get Sydney Kingsford Smith International Airport
console.log(
  ourairports.airports.filter(function(ap) {
    if ( ap.iata_code === 'SYD' ) return true
  })
)

Data

Here is a overview over the given data.

| ~ Size | name | description | | ------: | ---- | ----------- | | 18 MB | airports | containing information on all airports on this site. | | 15 MB | runways | listing runways for the airports in airports. | | 4.8_MB | navaids | listing worldwide radio navigation aids. | | 33 KB | countries | list of the world's countries. To interpret the country codes in airports and navaids. | | 707 KB | regions | list of all countries' regions (provinces, states, etc.). To interpret the region codes in airports. | | 3.2 MB | frequencies | listing communication frequencies for the airports. |

| name | fields | | ---- | ------ | | airports | id, ident, type, name, latitude_deg, longitude_deg, elevation_ft, continent, iso_country, iso_region, municipality, scheduled_service, gps_code, iata_code, local_code, home_link, wikipedia_link, keywords | | runways | id, airport_ref, airport_ident, length_ft, width_ft, surface, lighted, closed, le_ident, le_latitude_deg, le_longitude_deg, le_elevation_ft, le_heading_degT, le_displaced_threshold_ft, he_ident, he_latitude_deg, he_longitude_deg, he_elevation_ft, he_heading_degT, he_displaced_threshold_ft | | navaids | id, filename, ident, name, type, frequency_khz, latitude_deg, longitude_deg, elevation_ft, iso_country, dme_frequency_khz, dme_channel, dme_latitude_deg, dme_longitude_deg, dme_elevation_ft, slaved_variation_deg, magnetic_variation_deg, usageType, power, associated_airport | | countries | id, code, name, continent, wikipedia_link, keywords | | regions | id, code, local_code, name, continent, iso_country, wikipedia_link, keywords | | frequencies | id, airport_ref, airport_ident, type, description, frequency_mhz |

CSV Files

http://ourairports.com/data/

Credits

Big thanks to David Megginson. Please considure to pay him a visit.