world-airports

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i world-airports

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • mikedub