aviation-names 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DATA_SOURCES.md +354 -0
- package/LICENSE +39 -0
- package/README.md +153 -0
- package/dist/airline-IWluLwUC.cjs +23 -0
- package/dist/airline-br_1PcDp.js +19 -0
- package/dist/airline.cjs +3 -0
- package/dist/airline.d.cts +17 -0
- package/dist/airline.d.ts +17 -0
- package/dist/airline.js +2 -0
- package/dist/airport-DsCO0sQC.js +16 -0
- package/dist/airport-DxZ75Ncw.cjs +20 -0
- package/dist/airport.cjs +3 -0
- package/dist/airport.d.cts +14 -0
- package/dist/airport.d.ts +14 -0
- package/dist/airport.js +2 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/lookup-CLa4T8Yj.js +28 -0
- package/dist/lookup-DZ-BzxSo.cjs +33 -0
- package/package.json +79 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/airline.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Looks up an airline brand name by its 2-character IATA designator.
|
|
4
|
+
*
|
|
5
|
+
* Input is trimmed and upper-cased, so `"ga"` and `" GA "` both resolve.
|
|
6
|
+
* Unknown or malformed codes return `null` rather than throwing.
|
|
7
|
+
*
|
|
8
|
+
* An IATA airline designator does not imply IATA membership; this package does
|
|
9
|
+
* not use membership as an inclusion criterion.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* airline("GA"); // "Garuda Indonesia"
|
|
13
|
+
* airline("ZZ"); // null
|
|
14
|
+
*/
|
|
15
|
+
declare const airline: (code: string) => string | null;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { airline };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/airline.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Looks up an airline brand name by its 2-character IATA designator.
|
|
4
|
+
*
|
|
5
|
+
* Input is trimmed and upper-cased, so `"ga"` and `" GA "` both resolve.
|
|
6
|
+
* Unknown or malformed codes return `null` rather than throwing.
|
|
7
|
+
*
|
|
8
|
+
* An IATA airline designator does not imply IATA membership; this package does
|
|
9
|
+
* not use membership as an inclusion criterion.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* airline("GA"); // "Garuda Indonesia"
|
|
13
|
+
* airline("ZZ"); // null
|
|
14
|
+
*/
|
|
15
|
+
declare const airline: (code: string) => string | null;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { airline };
|
package/dist/airline.js
ADDED