nuxt-weather-module 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/module.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Weather Module
|
|
1
|
+
# Nuxt Weather Module
|
|
2
2
|
|
|
3
3
|
[![npm version][npm-version-src]][npm-version-href]
|
|
4
4
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
@@ -24,7 +24,7 @@ A Nuxt module for displaying dynamic weather icons from the Open-Meteo API.
|
|
|
24
24
|
Install the module to your Nuxt application with one command:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npx nuxi module add weather-module
|
|
27
|
+
npx nuxi module add nuxt-weather-module
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
That's it! You can now use the `DynamicWeather` component in your Nuxt app.
|
|
@@ -35,7 +35,7 @@ The module can be configured in your `nuxt.config.ts` file:
|
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
export default defineNuxtConfig({
|
|
38
|
-
modules: ['weather-module'],
|
|
38
|
+
modules: ['nuxt-weather-module'],
|
|
39
39
|
weatherModule: {
|
|
40
40
|
latitude: 55.676098, // Copenhagen
|
|
41
41
|
longitude: 12.568337, // Copenhagen
|
|
@@ -81,10 +81,10 @@ The module exports the following types for use in your application:
|
|
|
81
81
|
- `CurrentWeatherDetail`
|
|
82
82
|
- `CurrentWeatherUnits`
|
|
83
83
|
|
|
84
|
-
You can import them from `weather-module`:
|
|
84
|
+
You can import them from `nuxt-weather-module`:
|
|
85
85
|
|
|
86
86
|
```ts
|
|
87
|
-
import type { WeatherIcon } from 'weather-module'
|
|
87
|
+
import type { WeatherIcon } from 'nuxt-weather-module'
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
## Notes
|
|
@@ -124,14 +124,14 @@ import type { WeatherIcon } from 'weather-module'
|
|
|
124
124
|
</details>
|
|
125
125
|
|
|
126
126
|
<!-- Badges -->
|
|
127
|
-
[npm-version-src]: https://img.shields.io/npm/v/weather-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
128
|
-
[npm-version-href]: https://npmjs.com/package/weather-module
|
|
127
|
+
[npm-version-src]: https://img.shields.io/npm/v/nuxt-weather-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
128
|
+
[npm-version-href]: https://npmjs.com/package/nuxt-weather-module
|
|
129
129
|
|
|
130
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/weather-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
131
|
-
[npm-downloads-href]: https://npm.chart.dev/weather-module
|
|
130
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-weather-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
131
|
+
[npm-downloads-href]: https://npm.chart.dev/nuxt-weather-module
|
|
132
132
|
|
|
133
|
-
[license-src]: https://img.shields.io/npm/l/weather-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
134
|
-
[license-href]: https://npmjs.com/package/weather-module
|
|
133
|
+
[license-src]: https://img.shields.io/npm/l/nuxt-weather-module.svg?style=flat&colorA=020420&colorB=00DC82
|
|
134
|
+
[license-href]: https://npmjs.com/package/nuxt-weather-module
|
|
135
135
|
|
|
136
136
|
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt
|
|
137
137
|
[nuxt-href]: https://nuxt.com
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-weather-module",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A Nuxt module for displaying dynamic weather icons from Open-Meteo API with configurable coordinates",
|
|
5
5
|
"author": "LobergDesign",
|
|
6
6
|
"homepage": "https://github.com/LobergDesign/weather-module#readme",
|