Skip to content

CAELAero/gfa-utils

Repository files navigation

CAEL Aero GFA Utils

Utilities for interacting with Gliding Federation of Australia files and systems.

npm type definitions node License GitHub package.json version Build Status Coverage Status

Documentation

Installation

npm install @cael-aero/gfa-utils --save
yarn add @cael-aero/gfa-utils
bower install @cael-aero/gfa-utils --save

Usage

Javascript

var gfaUtils = require('@cael-aero/gfa-utils');
var data = gfaUtils.loadAllDirectives('somefile.xls');

TypeScript

import { AircraftDirectiveData, DirectivesLoader } from '@cael-aero/gfa-utils';

let data:AircraftDirectiveData[] = DirectivesLoader.loadAllDirectives('somefile.xls');

API Examples

Load Data Specific to a Certification Type

The second argument provides the option for an exact match of the type certificate. Variations are not returned. Eg looking for a DG 300 will not return anything that is registered for a DG303 Elan. This will load all matching type certificates, whether currently active or not.

let data:AircraftDirectiveData[] = DirectivesLoader.loadAllDirectives('somefile.xls', "Standard Cirrus");

Load Only the Current ADs

If you are only interested in the currently active ADs for, then the third option can be used to request only providing the current list.

let data:AircraftDirectiveData[] = DirectivesLoader.loadAllDirectives('somefile.xls', "Standard Cirrus", true);

You can request all currently active ADs regardless of Type Certificate, by leaving the second argument as null

let data:AircraftDirectiveData[] = DirectivesLoader.loadAllDirectives('somefile.xls', null, true);

Using an empty string will also have the same effect.

License

This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.

Related Projects

CASA Utils for CASA Data

About

Utilities for handling various data files and APIs from the GFA.

Resources

License

Stars

Watchers

Forks

Packages

No packages published