@squawk
    Preparing search index...
    • Fetches TAFs from the Aviation Weather Center text API and parses each record. Each TAF in the AWC response begins with a TAF token at the start of a line, followed by indented continuation lines for the base forecast and any change groups; records may be separated by either a blank line or a single newline.

      import { fetchTaf } from '@squawk/weather/fetch';

      const { tafs } = await fetchTaf(['KJFK', 'KLAX']);
      console.log(tafs[0]?.stationId); // "KJFK"

      Parameters

      • ids: string | string[]

        A single ICAO station identifier or an array of identifiers.

      • options: FetchWeatherOptions = {}

        Optional abort signal and base URL override.

      Returns Promise<FetchTafResult>

      The parsed TAFs, any per-record parse errors, and the raw body.