world-airports
v1.1.0
Published
A lightweight JavaScript wrapper around World Airports API
Downloads
4
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