# fb-watchman

> Bindings for the Watchman file watching service

Latest version **2.0.2** (published 2022-09-21) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install fb-watchman
pnpm add fb-watchman
yarn add fb-watchman
bun add fb-watchman
```

## Health

**Score 38/100 (D)** — status: abandoned.

Positive: has types package; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2022-09-21 |
| First published | 2014-11-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | separate (@types/fb-watchman) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13715 |
| Author | Wez Furlong |
| Maintainers | wez, bolinfest, fb, kassens, fanzeyi |
| Keywords | facebook, watchman, file, watch, watcher, watching, fs.watch, fswatcher, fs, glob, utility |

## Links

- npm: https://www.npmjs.com/package/fb-watchman
- Repository: https://github.com/facebook/watchman
- Homepage: https://facebook.github.io/watchman/
- Issues: https://github.com/facebook/watchman/issues
- npm.io page: https://npm.io/package/fb-watchman

## Dependencies (1)

- [bser](https://npm.io/package/bser.md) 2.1.1

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

- 2.0.2 (latest) — 2022-09-21
- 2.0.1 — 2019-12-06
- 2.0.0 — 2017-01-30
- 1.9.2 — 2017-01-27
- 1.9.1 — 2017-01-27
- 1.9.0 — 2016-01-27
- 1.8.0 — 2016-01-14
- 1.7.0 — 2016-01-04
- 1.6.0 — 2015-08-25
- 1.5.0 — 2015-08-16
- 1.4.0 — 2015-08-16
- 1.3.0 — 2015-08-16
- 1.2.0 — 2015-07-11
- 1.1.0 — 2015-06-25
- 1.0.0 — 2015-06-23
- … 2 more at https://npm.io/package/fb-watchman/versions

## README

# fb-watchman

`fb-watchman` is a filesystem watcher that uses the
[Watchman](https://facebook.github.io/watchman/) file watching service from
Facebook.

Watchman provides file change notification services using very
efficient recursive watches and also allows more advanced change matching and
filesystem tree querying operations using
[a powerful expression syntax](https://facebook.github.io/watchman/docs/file-query.html#expressions).

## Install

You should [install Watchman](
https://facebook.github.io/watchman/docs/install.html) to make the most of this
module.

Then simply:

```
$ npm install fb-watchman
```

## Key Concepts

- Watchman recursively watches directories.
- Each watched directory is called a `root`.
- You must initiate a `watch` on a `root` using the `watch-project` command prior to subscribing to changes
- Rather than separately watching many sibling directories, `watch-project` consolidates and re-uses existing watches relative to a project root (the location of your `.watchmanconfig` or source control repository root)
- change notifications are relative to the project root

## How do I use it?

[Read the NodeJS watchman documentation](https://facebook.github.io/watchman/docs/nodejs.html)

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