# cli-city-weather

> ##### _Find weather and save in file_

Latest version **1.0.0** (published 2021-03-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install cli-city-weather
pnpm add cli-city-weather
yarn add cli-city-weather
bun add cli-city-weather
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-03-27 |
| First published | 2021-03-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | talininkold |

## Links

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

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^16.2.0
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0

## Recent versions

- 1.0.0 (latest) — 2021-03-27

## README

# Cli-city-weather
##### _Find weather and save in file_

Simple script for saving weather info to your computer by running one command

## Installation

Cli-city-weather requires [Node.js](https://nodejs.org/) v14.7.0+ to run.

Install the dependencies.

```sh
cd yourProjectName
npm init
npm install cli-city-weather
touch index.js
```
_Inside index.js_

```sh
const saveWeather = require('cli-city-weather')

saveWeather()
```

Go to [_openweathermap_](https://openweathermap.org/). Once you sign up using your email, the API key (APPID) will be sent to you in a confirmation email. Your API keys can always be found on your account page, where you can also generate additional API keys if needed.

Create .env file:

```sh
APP_ID=your_api_id
```

## Usage

To save weather in ~/Downloads/weather.json run:

```sh
node index.js Novosibirsk ~/Downloads
```

To save weather in ~/Downloads/test.txt run:

```sh
node index.js Moscow ~/Downloads/test.txt
```

To save weather in current directory in weather.json run:

```sh
node index.js Krasnodar
```

## License

MIT

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