# run-in

> Run command in all directory

Latest version **0.0.4** (published 2017-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install run-in
pnpm add run-in
yarn add run-in
bun add run-in
```

Provides the command `run-in`.

## 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.4 |
| Published | 2017-03-04 |
| First published | 2017-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | codefalling |
| Maintainers | codefalling |

## Links

- npm: https://www.npmjs.com/package/run-in
- Repository: https://github.com/CodeFalling/run-in
- Homepage: https://github.com/CodeFalling/run-in#readme
- Issues: https://github.com/CodeFalling/run-in/issues
- npm.io page: https://npm.io/package/run-in

## Dependencies (7)

- [glob](https://npm.io/package/glob.md) ^7.1.1
- [colors](https://npm.io/package/colors.md) ^1.1.2
- [autocmdr](https://npm.io/package/autocmdr.md) ~0.0.7
- [commander](https://npm.io/package/commander.md) ~2.0.0
- [glob-promise](https://npm.io/package/glob-promise.md) ^3.1.0
- [spawn-command](https://npm.io/package/spawn-command.md) ^0.0.2-1
- [promise-polyfill](https://npm.io/package/promise-polyfill.md) ^6.0.2

## Recent versions

- 0.0.4 (latest) — 2017-03-04
- 0.0.2 — 2017-03-04
- 0.0.1 — 2017-03-04

## README

#run-in

## Description

Run your command in all directories

## Why this

**CD to every directory and type `npm run watch` is really tooooooo boring**. I even have to keep many tabs of them and jump here and there to watch their logs.

`pm2 start` maybe another good idea in this case. But why not make a script to do this?

## Install

To install run-in from npm, run:

```
$ npm install -g run-in
```

## Usage

To run `npm install` in all your `prefix-xxx` directory, just run

```
$ run-in -g "prefix-*" -c "npm install"
```

to watching all your projects in this directory (`npm run watch`)

```
$ run-in -g "*" -c "npm run watch"
```

`run-in` use `glob` to match directories, see details [here](https://github.com/isaacs/node-glob).

## Screenshot
![image](https://cloud.githubusercontent.com/assets/5436704/23579716/2e248fb0-012e-11e7-901f-44b143f461fd.png)

## License

Copyright (c) 2017 codefalling

[MIT License](http://en.wikipedia.org/wiki/MIT_License)

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