1.1.0 • Published 2 years ago
weatherish v1.1.0
This is a personal project made to learn a little bit about CLI's. It's a simple CLI that fetches weather data from a specific city, returning current local time and temperature, feels like, humidity and wind speed.
Table of Contents
Getting Started
Installing:
NPM | Yarn |
---|---|
npm install -g weatherish | yarn global add weatherish |
Usage
This project accepts two units of measurement: metric and imperial. This option is not required, but, if you don't pass it, the default unit is going to be metric
and local datetime format will be DD/MM - HH:mm
. If you pass imperial
as an option, all weather data will be displayed in Fahrenheit
and local datetime format will be MM/DD HH:mm AM/PM
.
Usage: weather [options]
A CLI to check the weather from a city.
Options:
-V, --version Output the version number
-c, --city <value> Enter the city name
-u, --units <value> Choose units of measurement
-h, --help Display help for command
Examples:
weather -c "Curitiba"
weather -c "London" -u imperial
Examples:
Default:
Passing unit as an option: