</>PackageGraphPackageGraph

chokidar

npmv5.0.0TypeScript

Minimal and efficient cross-platform file watching library

Safe to adopt

Yes — chokidar scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 288 days ago. 5 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 288 days ago. 5 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 80 KB installed (at least — some of the tree is still being crawled).

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding chokidar to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

80 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Compatibility

Node.js
node >= 20.19.0
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the chokidar README.

javascriptFull README ↗
import chokidar from 'chokidar';

// One-liner for current directory
chokidar.watch('.').on('all', (event, path) => {
  console.log(event, path);
});

// Extended options
// ----------------

// Initialize watcher.
const watcher = chokidar.watch('file, dir, or array', {
  ignored: (path, stats) => stats?.isFile() && !path.endsWith('.js'), // only watch js files
  persistent: true,
Example truncated — see the full README.

chokidar vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
chokidarthis page03MIT9 months ago
fb-watchman03Apache-2.01 day ago
normalize-path72.6M1MIT1 day ago
anymatch01ISC1 day ago
callsites136.7M1MIT1 day ago
mime136.4M6MIT1 day ago

Dependencies

Declared by chokidar v5.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (1)

readdirp ^5.0.0

Dev (6)

@paulmillr/jsbt 0.4.5@types/node 24.10.1prettier 3.5.2tinyspy 3.0.2typescript 5.9.2upath 2.0.1

Used by

Popular packages that depend on chokidar.

Relationship graph

Dependencies (left) and dependents (right) of chokidar.

vitecsstypesasschokidar
chokidar dependencies dependents

Frequently installed together

Release history

3 releases in the last two years, typically about 68 days apart.

Recent versions of chokidar
VersionPublishedSizeLicense
5.0.0latest9 months ago80 KBMIT
4.0.31 year ago145 KBMIT
4.0.21 year ago145 KBMIT
4.0.11 year ago251 KBMIT
4.0.02 years ago250 KBMIT
3.6.02 years ago88 KBMIT
3.5.34 years ago88 KBMIT
3.5.25 years ago88 KBMIT
3.5.15 years ago87 KBMIT
3.5.05 years ago87 KBMIT
3.4.35 years ago88 KBMIT
3.4.26 years ago88 KBMIT
3.4.16 years ago87 KBMIT
3.4.06 years ago87 KBMIT
3.3.16 years ago86 KBMIT

Overview

chokidar is an npm package that minimal and efficient cross-platform file watching library. It has 3 known dependents in the graph. The latest version is 5.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need minimal and efficient cross-platform file watching library and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use chokidar?

Yes — chokidar scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 288 days ago. 5 releases in the last 2 years.

How do I install chokidar?

Run `npm install chokidar` to add chokidar to your npm project.

How many dependencies does chokidar have?

chokidar declares 7 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 80 KB on disk.

What license is chokidar released under?

chokidar is distributed under the MIT license.

How popular is chokidar?

npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on chokidar.

Is chokidar still maintained?

The most recent release of chokidar (v5.0.0) was published 9 months ago.

Does chokidar run install scripts?

No. chokidar does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.