# watchdoge

> A simple CLI tool watching command line execute result for you.

Latest version **0.3.3** (published 2017-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install watchdoge
pnpm add watchdoge
yarn add watchdoge
bun add watchdoge
```

Provides the command `watchdoge`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2017-07-29 |
| First published | 2017-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+15 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | altair21 |
| Maintainers | altair21 |
| Keywords | cli |

## Links

- npm: https://www.npmjs.com/package/watchdoge
- Repository: https://github.com/altair21/watchdoge
- Homepage: https://github.com/altair21/watchdoge#readme
- Issues: https://github.com/altair21/watchdoge/issues
- npm.io page: https://npm.io/package/watchdoge

## Dependencies (1)

- [nodemailer](https://npm.io/package/nodemailer.md) ^2.7.2

## 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

- 0.3.3 (latest) — 2017-07-29
- 0.3.2 — 2017-07-26
- 0.3.1 — 2017-04-28
- 0.1.7 — 2017-04-17
- 0.1.6 — 2017-04-14
- 0.1.4 — 2017-04-14
- 0.1.3 — 2017-04-14
- 0.1.2 — 2017-04-14
- 0.1.1 — 2017-04-14
- 0.1.0 — 2017-04-14

## README

# watchdoge

[![](https://travis-ci.org/altair21/watchdoge.svg?branch=master)](https://travis-ci.org/altair21/watchdoge)
[![npm version](https://img.shields.io/npm/v/watchdoge.svg)](https://www.npmjs.com/package/watchdoge)
[![](https://img.shields.io/npm/l/watchdoge.svg)](https://github.com/altair21/watchdoge/blob/master/LICENSE)

A simple CLI tool watching command line execute result for you.

![](https://ws1.sinaimg.cn/large/9ce43335gy1femb4iywslj20go0go0tr.jpg)

After configuring your email address, you can just run any command wrapped with `watchdoge`, and you will receive email when terminal has output. 

*You need Node.js enviroment to use this tool.*

## Installation

1. Install Node.js
2. `npm install -g watchdoge`

## Usage

1. `watchdoge config email xxx@xx.xx`
2. `watchdoge config password xxxx`
3. `watchdoge config service qq`. As Gmail has so many authorization to access, watchdoge only support `qq` email and `163` email by now. **default `service` is `qq`**.
4. `watchdoge config mode all`. 
  - Property `mode` has 3 valid value:
    - `end`(**default**): you will only receive one email with entire output when command execute finish.
    - `all`: you will receive email with output everytime terminal has stdout or stderr, and one email when command execute finish.
    - `error`: you will receive email with output everytime terminal has stderr, and one email when command execute finish.
5. you can run any command wrapped with `watchdoge`, for example `watchdoge ls`, `watchdoge ping -c 10 www.bing.com`.

## Further

- All your config is store in `~/.watchdogerc`, it is a JSON format file. You can edit this file by yourself, just keep JSON format.
- `qq` email and `163` email is preset, you can add other email by configuring `host` with email server address, `port` with email **ssl** protocol port, `service` with `none`, for example Gmail:
    - `watchdoge config service none`
    - `watchdoge config host smtp.gmail.com`
    - `watchdoge config port 465`

## LICENSE

[MIT LICENSE](https://github.com/altair21/watchdoge/blob/master/LICENSE)

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