Skip to content

@idfkit/weather/node

Node-only conveniences: loading the bundled station index from disk with no network call, and writing downloaded weather files to disk. This is the asynchronous edge, kept separate so the portable surface never has to touch node:fs.

import { loadBundledIndex, saveWeatherFiles } from '@idfkit/weather/node';
Interfaces

SavedWeatherFiles

Where saveWeatherFiles wrote each file. null when the file was absent.

Properties

ddy

epw

stat

SaveWeatherFilesOptions

Options for saveWeatherFiles.

Properties

stem

Basename (without extension) for the written files. Defaults to the station's filename stem.

Functions

loadBundledIndex

saveWeatherFiles