# nweather-cli

> Get weather information from the command line

Latest version **1.10.0** (published 2023-03-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install nweather-cli
pnpm add nweather-cli
yarn add nweather-cli
bun add nweather-cli
```

Provides the command `nweather-cli`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.10.0 |
| Published | 2023-03-21 |
| First published | 2023-03-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 15.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | therealcc |
| Maintainers | therealcc205 |
| Keywords | weather, cli, command line, node, javascript |

## Links

- npm: https://www.npmjs.com/package/nweather-cli
- npm.io page: https://npm.io/package/nweather-cli

## Dependencies (4)

- [yargs](https://npm.io/package/yargs.md) ^17.7.1
- [dotenv](https://npm.io/package/dotenv.md) ^16.0.3
- [moment](https://npm.io/package/moment.md) ^2.29.4
- [openweatherapi-js-sdk](https://npm.io/package/openweatherapi-js-sdk.md) ^1.1.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.10.0 (latest) — 2023-03-21
- 1.9.0 — 2023-03-21
- 1.8.0 — 2023-03-21
- 1.6.0 — 2023-03-19
- 1.5.0 — 2023-03-19
- 1.4.0 — 2023-03-19
- 1.3.0 — 2023-03-19
- 1.2.0 — 2023-03-19
- 1.1.0 — 2023-03-19
- 1.0.0 — 2023-03-19

## README

# Weather CLI

A simple CLI to get the weather forecast for a given location.  
(Uses the [OpenWeatherMap Javascript SDK](https://github.com/bayoudhi/openweatherapi-js-sdk))

## Usage

Here's how you could fetch the weather with each of the following categories

- City

```bash
npx nweather-cli City London Imperial
```

- Zip Code

```bash
npx nweather-cli Zip 90210 Imperial
```

- Coordinates <Latitude, Longtiude>

```bash
npx nweather-cli Coords '<51.5074,0.1278>' Imperial
```

- CityID

```bash
npx nweather-cli ID 2172797 Imperial
```

## Responses

Let's say you ran the following command:

```bash
npx nweather-cli City 'Washington DC' Imperial
```

You would get the following response:  
![Image of weather-cli-example](images/weather-cli-example.png)

## Bugs/Contributing

If you find any bugs or have any suggestions, please feel free to open an issue or a pull request.

---
_Source: https://npm.io/package/nweather-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
