Skip to content

This Weather CLI App fetches weather data and displays it to the user. It allows users to retrieve current weather information based on a provided city name or zip code.

Notifications You must be signed in to change notification settings

cirko0/cli-weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather CLI App

weather-cli-app

This Weather CLI App fetches weather data and displays it to the user. It allows users to retrieve current weather information based on a provided city name or zip code.

Features

  • Fetches weather data based on user input (city name or zip code).
  • Displays the current weather, including temperature and other relevant information.
  • Supports temperature units in both Celsius (°C) and Fahrenheit (°F).
  • Allows users to set a default location for quicker weather checks.
  • Enables users to set default temperature units (Celsius or Fahrenheit) for displaying.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/weather-cli-app.git
cd weather-cli-app
  1. Install dependencies:
npm install
  1. Install CLI globally:
npm install -g .

Usage

To use the Weather CLI App, run the following command in the terminal:

weather-cli [command] [options]

Replace [command] with the desired action (e.g., weather, set-location, set-units) and [options] with any applicable options for the chosen command.

For example, to fetch and display the current weather for a specific location, use:

weather-cli weather -s

Commands

  • weather (alias: w): Fetch and display the current weather.
  • set-location (alias: sl): Allow users to set a default location.
  • set-units (alias: su): Allow users to set default temperature units.

About

This Weather CLI App fetches weather data and displays it to the user. It allows users to retrieve current weather information based on a provided city name or zip code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published