nuxt-weather
v0.0.10
Published
Weather Nuxt module
Downloads
6
Readme
Nuxt Weather Module
Nuxt module to display the current weather in a given location
Quick Setup
Install the module to your Nuxt application with one command:
npx nuxi module add nuxt-weather
Get your api key from https://www.weatherapi.com/
Add your key to you environment:
WEATHER_API_KEY=<Your Weather API KEY>
That's it! You can now use the weather module in your Nuxt app ✨
Add it in your template like this
<CurrentWeather location="Stockholm" />
...or get the data from the composable
const currentWeatherData = await useWeatherData('Stockholm')
Contribution
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release