@selinac887/weather-sdk 1.0.1 → 1.0.2
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ providing access to current weather and forecast data.
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install @
|
|
14
|
+
npm install @selinac887/weather-sdk
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
@@ -19,7 +19,7 @@ npm install @yourname/weather-sdk
|
|
|
19
19
|
### Get current weather
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
import { getCurrentWeather } from "@
|
|
22
|
+
import { getCurrentWeather } from "@selinac887/weather-sdk";
|
|
23
23
|
|
|
24
24
|
const data = await getCurrentWeather({
|
|
25
25
|
latitude: -36.85,
|
|
@@ -37,7 +37,7 @@ console.log(data.current.temperature_2m);
|
|
|
37
37
|
### Get forecast weather
|
|
38
38
|
|
|
39
39
|
```ts
|
|
40
|
-
import { getForecast } from "@
|
|
40
|
+
import { getForecast } from "@selinac887/weather-sdk";
|
|
41
41
|
|
|
42
42
|
const forecast = await getForecast({
|
|
43
43
|
latitude: -36.85,
|