# is-it-cloudy

> Get weather emoji

Latest version **2.0.0** (published 2017-03-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-it-cloudy
pnpm add is-it-cloudy
yarn add is-it-cloudy
bun add is-it-cloudy
```

Provides the command `is-it-cloudy`.

## 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 | 2.0.0 |
| Published | 2017-03-02 |
| First published | 2017-03-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Anton Medvedev |
| Maintainers | medv |

## Links

- npm: https://www.npmjs.com/package/is-it-cloudy
- Repository: https://github.com/elfet/is-it-cloudy
- Homepage: https://github.com/elfet/is-it-cloudy#readme
- Issues: https://github.com/elfet/is-it-cloudy/issues
- npm.io page: https://npm.io/package/is-it-cloudy

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^2.9.0

## Recent versions

- 2.0.0 (latest) — 2017-03-02
- 1.0.0 — 2017-03-02

## README

# Is it cloudy? 🌦

Node command line tool to printing weather info.

<p align="center"><img width="551" alt="Bash prompt with weather info" src="https://cloud.githubusercontent.com/assets/141232/23497068/0d46f7dc-ff54-11e6-88e5-9ca9ff9180e7.png"></p>

## Installation

```sh
npm install -g is-it-cloudy
```

## Usage

```
  Usage: is-it-cloudy [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -c, --city [city]      city name for weather info
    -a, --appid [id]       app id for openweathermap.org
    -f, --format [format]  format output, %e for emoji, %t for temp
```

## Example

You can use this command to display weather in bash prompt.

Add next command to crontab to update status every 30 minutes:

```sh
0,30 * * * * /usr/local/bin/node /usr/local/bin/is-it-cloudy > ~/.is-it-cloudy
```

Add to your *.profile* file:

```sh
function set_ps1 {
  weather=$(cat ~/.is-it-cloudy);
  export PS1="${weather} \w\$"
}

export PROMPT_COMMAND="set_ps1;"
```

## License

MIT

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