dianom-weather 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +135 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,135 @@
1
+ # dianom-weather
2
+
3
+ A CLI tool to get weather information for any city. This package provides a simple command-line interface to retrieve current weather conditions.
4
+
5
+ ## Installation
6
+
7
+ You can use this package globally via npx without installation:
8
+
9
+ ```bash
10
+ npx dianom-weather
11
+ ```
12
+
13
+ Or install it globally to use the `weather` command:
14
+
15
+ ```bash
16
+ npm install -g dianom-weather
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ### Get Weather for Default City
22
+ ```bash
23
+ weather
24
+ ```
25
+
26
+ ### Set Default City
27
+ ```bash
28
+ weather -s London
29
+ ```
30
+
31
+ ### Set API Token
32
+ ```bash
33
+ weather -t YOUR_API_TOKEN
34
+ ```
35
+
36
+ ### Get Help
37
+ ```bash
38
+ weather -h
39
+ ```
40
+
41
+ ## Commands
42
+
43
+ - `-s <city>` - Set default city
44
+ - `-t <token>` - Set API token
45
+ - `-h` - Show help
46
+
47
+ ## Configuration
48
+
49
+ The package requires an API token from a weather service. You can get a free token from [OpenWeatherMap](https://openweathermap.org/api).
50
+
51
+ After getting your token, set it using:
52
+ ```bash
53
+ weather -t YOUR_API_TOKEN
54
+ ```
55
+
56
+ Set your default city using:
57
+ ```bash
58
+ weather -s CityName
59
+ ```
60
+
61
+ ## Features
62
+
63
+ - Get current weather information
64
+ - Save default city and API token
65
+ - Colorful console output
66
+ - Error handling for invalid cities or tokens
67
+
68
+ ---
69
+
70
+ # dianom-weather
71
+
72
+ CLI-инструмент для получения информации о погоде в любом городе. Этот пакет предоставляет простой интерфейс командной строки для получения текущих погодных условий.
73
+
74
+ ## Установка
75
+
76
+ Вы можете использовать этот пакет глобально через npx без установки:
77
+
78
+ ```bash
79
+ npx dianom-weather
80
+ ```
81
+
82
+ Или установите его глобально для использования команды `weather`:
83
+
84
+ ```bash
85
+ npm install -g dianom-weather
86
+ ```
87
+
88
+ ## Использование
89
+
90
+ ### Получить погоду для города по умолчанию
91
+ ```bash
92
+ weather
93
+ ```
94
+
95
+ ### Установить город по умолчанию
96
+ ```bash
97
+ weather -s London
98
+ ```
99
+
100
+ ### Установить API токен
101
+ ```bash
102
+ weather -t YOUR_API_TOKEN
103
+ ```
104
+
105
+ ### Получить справку
106
+ ```bash
107
+ weather -h
108
+ ```
109
+
110
+ ## Команды
111
+
112
+ - `-s <city>` - Установить город по умолчанию
113
+ - `-t <token>` - Установить API токен
114
+ - `-h` - Показать справку
115
+
116
+ ## Конфигурация
117
+
118
+ Пакет требует API токен от погодного сервиса. Вы можете получить бесплатный токен на [OpenWeatherMap](https://openweathermap.org/api).
119
+
120
+ После получения токена установите его с помощью:
121
+ ```bash
122
+ weather -t YOUR_API_TOKEN
123
+ ```
124
+
125
+ Установите ваш город по умолчанию с помощью:
126
+ ```bash
127
+ weather -s CityName
128
+ ```
129
+
130
+ ## Возможности
131
+
132
+ - Получение текущей информации о погоде
133
+ - Сохранение города и API токена по умолчанию
134
+ - Цветной вывод в консоль
135
+ - Обработка ошибок для неверных городов или токенов
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dianom-weather",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",