Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

airport-diagrams

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airport-diagrams

Fetch airport diagrams information

  • 1.2.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

airport-diagrams

Fetch the latest airport diagrams from https://www.faa.gov/

NPM Version Build Status Coverage Maintainability

Installation

$ npm install --save airport-diagrams

Usage

const cycle = await airportDiagrams.fetchCurrentCycle()
console.log('Current cycle:', cycle)

const diagrams = await airportDiagrams.list(['PANC', 'KSEA'])
console.log(JSON.stringify(diagrams, null, 2))

Output

Current cycle: 1813
[
  [
    {
      "state": "AK",
      "city": "ANCHORAGE",
      "airport": "TED STEVENS ANCHORAGE INTL",
      "ident": "ANC (PANC)",
      "vol": "AK-1",
      "flag": "",
      "procedure": {
        "name": "AIRPORT DIAGRAM (PDF)",
        "url": "http://aeronav.faa.gov/d-tpp/1813/01500ad.pdf#nameddest=(ANC)"
      },
      "compare": {
        "name": "N/A"
      }
    }
  ],
  [
    {
      "state": "WA",
      "city": "SEATTLE",
      "airport": "SEATTLE-TACOMA INTL",
      "ident": "SEA (KSEA)",
      "vol": "NW-1",
      "flag": "",
      "procedure": {
        "name": "AIRPORT DIAGRAM (PDF)",
        "url": "http://aeronav.faa.gov/d-tpp/1813/00582ad.pdf#nameddest=(SEA)"
      },
      "compare": {
        "name": "N/A"
      }
    }
  ]
]

API

airportDiagrams(icaos)

airportDiagrams.list(icaos)

icaos

Type: string or array

One of the following:

  • a single ICAO code
  • an array of ICAO codes

airportDiagrams.fetchCurrentCycle()

Fetch the current diagrams distribution cycle numbers (.e.g, 1813)

License

MIT © Forrest Desjardins

Keywords

FAQs

Package last updated on 25 Sep 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc