@exym/weather
v1.0.2
Published
CLI for getting the weather
Downloads
2
Readme
Weather CLI
A simple command-line interface (CLI) to fetch and display weather information for a specified city using the OpenWeatherMap API.
Installation
Install the package globally via npm:
npm i -g @exym/weather
Features
- Display the current weather forecast for a specified city.
- Save your API key securely.
- Save your preferred city for quick weather updates.
Prerequisites
To use this utility, you need to have:
- A free API key from OpenWeatherMap.
Commands
weather -h
- Display the help messageweather -t <API_KEY>
- Save the API keyweather -c <CITY_NAME>
- Save the city nameweather
- Display the weather forecast for the saved city.