@squawk/icao-registry
Advanced tools
+2
-2
| { | ||
| "name": "@squawk/icao-registry", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "type": "module", | ||
@@ -53,3 +53,3 @@ "description": "FAA ICAO hex address to aircraft registration and info lookup", | ||
| "dependencies": { | ||
| "@squawk/types": "^0.7.2", | ||
| "@squawk/types": "^0.8.0", | ||
| "adm-zip": "^0.5.17" | ||
@@ -56,0 +56,0 @@ }, |
+7
-0
@@ -69,2 +69,9 @@ <h1><img src="../../../assets/squawk-logo.svg" alt="squawk logo" width="48" height="48" style="vertical-align: middle"> @squawk/icao-registry</h1> | ||
| ## API | ||
| - `createIcaoRegistry({ data })` - builds a registry from an array of `AircraftRegistration` records. | ||
| - `registry.lookup(icaoHex)` - resolves a 24-bit ICAO hex address to a record, or `undefined`. | ||
| - `registry.recordCount` - total number of records in the loaded dataset. | ||
| - `parseFaaRegistryZip(buffer)` - parses a downloaded FAA `ReleasableAircraft.zip` into the `AircraftRegistration[]` shape that `createIcaoRegistry` expects. Node-only; not exported from the `/browser` entry. | ||
| > Under active development. See the [docs](https://neilcochran.github.io/squawk/modules/_squawk_icao-registry.html) for current API status. |
22858
2.19%77
10%+ Added
- Removed
Updated