# watch-project

> watch directory change, emit events including create, change, mv, remove, mkdir, mvdir, rmdir as exactly as there is

Latest version **0.0.7** (published 2013-12-11) · BSD license · 0 weekly downloads

## Install

```sh
npm install watch-project
pnpm add watch-project
yarn add watch-project
bun add watch-project
```

## 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.7 |
| Published | 2013-12-11 |
| First published | 2013-09-10 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wangyuzju |
| Maintainers | wangyu0248 |
| Keywords | watch, exactly, fs, change, type |

## Links

- npm: https://www.npmjs.com/package/watch-project
- Repository: https://github.com/wangyuzju/watch-project
- Issues: https://github.com/wangyuzju/watch-project/issues
- npm.io page: https://npm.io/package/watch-project

## Dependencies (2)

- [MD5](https://npm.io/package/MD5.md) ~1.1.0
- [chokidar](https://npm.io/package/chokidar.md) ~0.6.3

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.7 (latest) — 2013-12-11
- 0.0.6 — 2013-11-25
- 0.0.5 — 2013-10-10
- 0.0.4 — 2013-10-10
- 0.0.3 — 2013-09-22
- 0.0.2 — 2013-09-19
- 0.0.1 — 2013-09-15
- 0.0.0 — 2013-09-10

## README

### Installation

```bash
npm install watch-project
```

### Usage

```js
watch = require("watch-project");

watch("dir", {stable: true}, function(e){
    switch (e.type){
        case "change":
        case "create":
        case "mkdir":
        case "delete":
        case "rmdir":
        case "mvfile":
        case "mvdir":
            console.log("file path: " + e.filename);
            console.log("[optional] origin MD5: " + e.oid);
            console.log("[optional] MD5 now: " + e.nid);
            console.log("[optional] origin file path: " + e.oname);
            break;
    }
})

```

# change log
1. 0.0.2 add stable mode (using "chokidar") for supporting old version of nodejs(0.8) and OSX(10.7)

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