1.1.0 • Published 2 years ago

weatherish v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

node axios commander eslint MIT License

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:

NPMYarn
npm install -g weatherishyarn 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:

default

Passing unit as an option:

imperial

⬆ Back to the top

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago