# @11ty/chokidar-with-glob-support

> chokidar 5 with chokidar 3 glob support.

Latest version **2.1.1** (published 2026-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @11ty/chokidar-with-glob-support
pnpm add @11ty/chokidar-with-glob-support
yarn add @11ty/chokidar-with-glob-support
bun add @11ty/chokidar-with-glob-support
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2026-11-03 |
| First published | 2026-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=20.19 |
| Dependencies | 2 |
| Unpacked size | 25.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12 |
| Author | Zach Leatherman |
| Maintainers | zachleat, fortawesome-admin |
| Keywords | eleventy, chokidar, glob, watch |

## Links

- npm: https://www.npmjs.com/package/@11ty/chokidar-with-glob-support
- Repository: https://github.com/11ty/eleventy-utils
- Homepage: https://www.11ty.dev/
- Issues: https://github.com/11ty/eleventy-utils/issues
- Funding: https://opencollective.com/11ty
- npm.io page: https://npm.io/package/@11ty/chokidar-with-glob-support

## Dependencies (2)

- [chokidar](https://npm.io/package/chokidar.md) ^5.0.0
- [picomatch](https://npm.io/package/picomatch.md) ^4.0.7

## 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.1.1 (latest) — 2026-11-03
- 1.1.1 — 2026-11-03
- 2.1.0 — 2026-10-16
- 2.0.0 — 2026-10-15
- 1.1.0 — 2026-10-15
- 1.0.0 — 2026-10-15
- 0.0.0-stage — 2026-10-15

## README

# @11ty/chokidar-with-glob-support

A drop-in for `chokidar@3` built on `chokidar@5`, restoring glob support for watch targets and `ignored`.

```js
const chokidar = require("@11ty/chokidar-with-glob-support");
// or: import chokidar from "@11ty/chokidar-with-glob-support";

chokidar.watch(["src/**/*.css", "!src/vendor/**"], {
  ignored: ["**/node_modules/**", ".git"],
}).on("change", path => console.log(path));
```

- Globs and `!negations` in `watch()`, `add()`, and `unwatch()` (matched with `picomatch`, `dot: true`).
- `ignored` accepts globs, paths (including their contents), RegExps, and functions.
- Relative globs resolve against `cwd`; `disableGlobbing: true` treats all entries as literal paths.
- `nocase: true` matches globs, paths, and `ignored` case-insensitively (default `false`, same as `picomatch`).
- Directories that cannot contain matches are not traversed.
- On macOS, `watch()` uses one recursive `fs.watch` (FSEvents) per folder instead of a file descriptor per file; opt out with `useFsEvents: false`, `usePolling`, or `depth`.

Requires Node 20.19 or newer.

---
_Source: https://npm.io/package/@11ty/chokidar-with-glob-support · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
