world-airports

v1.1.0
A lightweight JavaScript wrapper around World Airports API
api airports javascript

world-airports

A lightweight JavaScript wrapper for the World Airports API.

Install

$ npm install world-airports --save

Usage

import { worldAirports } from 'world-airports';

worldAirports('lax').then(console.log);

/*
[
  {
    "ac": "LAX",
    "an": "Los Angeles",
    "cn": "United States",
    "cc": "US",
    "ct": "Los Angeles"
  },
  {
    "ac": "LLA",
    "an": "Kallax",
    "cn": "Sweden",
    "cc": "SE",
    "ct": "Lulea"
  }
]
*/

LICENSE

MIT

npm i world-airports

Metadata

  • MIT
  • Whatever
  • Mike Wilcox
  • released 3/25/2016

Downloads

Maintainers