Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

volo-icao-parser

license

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-parser
const { 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.

License

MIT © VOLO Technologies Pte. Ltd.

About

Validate ICAO/IATA airport codes & infer region. Zero deps. By VOLO.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages