> ## Documentation Index
> Fetch the complete documentation index at: https://stars-components.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: getWeatherName()

> **getWeatherName**(`code`): [`WeatherName`](/documentation/api/weather-helpers/type-aliases/WeatherName)

Defined in: [weather.ts:64](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/weather-helpers/src/lib/weather.ts#L64)

Retrieves the name of the weather based on the provided weather code.

## Parameters

### code

[`WeatherCode`](/documentation/api/weather-helpers/enumerations/WeatherCode)

The weather code.

## Returns

[`WeatherName`](/documentation/api/weather-helpers/type-aliases/WeatherName)

The name of the weather.

## Throws

Error if the provided code is not available.
