# rebuild

> Rebuild

Latest version **0.1.2** (published 2012-08-24) · 0 weekly downloads

## Install

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

Provides the command `rebuild`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2012-08-24 |
| First published | 2012-08-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.8 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Nicholas C. Zakas |
| Maintainers | nzakas |

## Links

- npm: https://www.npmjs.com/package/rebuild
- Repository: http://github.com/nzakas/rebuild
- npm.io page: https://npm.io/package/rebuild

## Dependencies (1)

- [optimist](https://npm.io/package/optimist.md) 0.3.x

## Recent versions

- 0.1.2 (latest) — 2012-08-24
- 0.1.1 — 2012-08-24
- 0.1.0 — 2012-08-24

## README

# Rebuild

Rebuild is a simple utility that does just one thing: it watches one or more files or directories for changes and runs a command when they change. That's it. It's intended to be used with command line build systems, but you can't really use it for anything.

## Installation

    npm install rebuild -g

## Usage

Specify any number of files or directories using `-w` or `--watch`. Then just include whatever command you want to run. For example, if you just want to run `ls` whenever files in the `tmp` directory change, you would do this:

    rebuild -w tmp ls

The directory is resolved based on the current working directory for both the files and directories to watch and the command to run. Other examples:

    # Run "ant test" when the files in src change
    rebuild -w src ant test
    
    # Automatically check in files in src and docs when they change
    rebuild -w src -w docs git commit -am "Just wanted to check these in"

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