world-airports

A lightweight JavaScript wrapper around World Airports API

Usage no npm install needed!

<script type="module">
  import worldAirports from 'https://cdn.skypack.dev/world-airports';
</script>

README

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