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

aviation-json

v0.3.1

Published

Module that uses aviation-scraper as a dev dependency to generate using a single command aviation files ready.

Downloads

26

Readme

Codeship Status for cristobal-io/aviation-json Coverage Status

aviation-json

Description:

Module created to make available a quick way to update all the aviation related information from wikipedia.

Using the package aviation-scraper to download all the information regarding airports, airlines and their destinations from wikipedia exposes the following files:

  • airline_destinations.json (an object where the key is the airline url and an array of destination airport urls)
  • airlines.json (an array with all the airlines data)
  • airport_airlines.json (an object with all the airports including the airlines that fly to this airport grouped into an array)
  • airport_cities.json (an object where the key is the primary key of the airport that includes the name and the url of the city it belongs to.)
  • airport_runways.json (an object with the runways for each airport.)
  • airports.json (an object with all the airports and their data)
  • city_airports.json (an object that includes all the airports into one city.)

Usage.

install via npm:

npm install aviation-json --save
var aviationJson = require("aviation-json");
// then you will have available all the information.

var airlineDestinations = aviationJson.airline_destinations;
var airlines = aviationJson.airlines;
var airportAirlines = aviationJson.airport_airlines;
var airportsCities = aviationJson.airport_cities;
var airportRunways = aviationJson.airport_runways;
var airports = aviationJson.airports;
var cityAirports = aviationJson.city_airports;

Updating the information:

Go to the node_modules/aviation-json directory and run 'make sync'

This is going to take a while and depending on your internet connection you may have troubles, after the 5 time trying to reach the wikipedia page to scrape the information, it will throw and err.

Testing.

All the code is properly tested. To run the test:

# this command lint all the files and runs the tests.
make test

if you want to be in watch mode:

# this command run the test in watch mode.
make dev

Contributions:

If you want to contribute, create your branch and place a PR or open an issue.