volo-icao-parser
v1.0.0
Published
Validate ICAO/IATA airport codes and infer region from ICAO prefix. Zero dependencies. By VOLO.
Maintainers
Readme
volo-icao-parser
Validate ICAO / IATA airport codes and infer the region from an ICAO prefix. Zero dependencies.
Part of VOLO's open aviation toolkit.
Install
npm install volo-icao-parserconst { isValidICAO, isValidIATA, regionFromICAO, parse } = require("volo-icao-parser");
isValidICAO("KJFK"); // → true
isValidIATA("JFK"); // → true
regionFromICAO("EGLL"); // → "Northern Europe"
parse("wsss"); // → { code: "WSSS", type: "ICAO", region: "Maritime Southeast Asia" }API
| Function | Returns |
|---|---|
| isValidICAO(code) | true for a 4-letter ICAO code |
| isValidIATA(code) | true for a 3-letter IATA code |
| regionFromICAO(code) | human-readable region, or null |
| parse(code) | { code, type: "ICAO"\|"IATA"\|"invalid", region } |
About
Built by VOLO — the world's first agent-native private aviation platform. See more open tools and the live charter API at flyvolo.ai/open-source.
