# watchrun

> Watching directory to ad hoc will run command

Latest version **0.0.6** (published 2017-06-29) · MIT license · 0 weekly downloads

## Install

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

Provides the command `watchrun`.

## 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.0.6 |
| Published | 2017-06-29 |
| First published | 2016-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Toshiyuki Goto |
| Maintainers | ngyuki |
| Keywords | utility |

## Links

- npm: https://www.npmjs.com/package/watchrun
- Repository: https://github.com/ngyuki/watchrun
- Issues: https://github.com/ngyuki/watchrun/issues
- npm.io page: https://npm.io/package/watchrun

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [chokidar](https://npm.io/package/chokidar.md) ^1.7.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2017-06-29
- 0.0.5 — 2017-05-11
- 0.0.4 — 2016-04-07
- 0.0.3 — 2016-04-07

## README

# watchrun

Watching directory to ad hoc will run command.

## Install

```console
$ npm install -g ngyuki/watchrun
```

## Example

Watching current directory.

```console
$ watchrun date
Command: [ 'date' ]
Pattern: [ '**/*' ]
```

Update file by other console.

```console
$ touch ./README.md
```

`date` command is run on first console. 

```console
$ watchrun ./ -- date
Command: [ 'date' ]

Waiting... changed README.md
Thu Apr  7 22:51:02 JST 2016

Waiting...
```

## Use Shell

*watchrun* does not use shell to run command.
Therefore, the following does not work.

```
watchrun 'gcc a.c && ./a.out'
```

Please use `-c` option of bash as below.

```
watchrun bach -c 'gcc a.c && ./a.out'
```

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