</>PackageGraphPackageGraph

watchpack

npmv2.5.2TypeScript

Wrapper library for directory and file watching.

Safe to adopt

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

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

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

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

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 138 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 6 maintainers, and a contained dependency surface.

  • 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 watchpack 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.

138 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

ISC

Every license you inherit by installing watchpack, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=10.13.0
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the watchpack README.

javascriptFull README ↗
const Watchpack = require("watchpack");

const wp = new Watchpack({
	// options:
	aggregateTimeout: 1000,
	// fire "aggregated" event when after a change for 1000ms no additional change occurred
	// aggregated defaults to undefined, which doesn't fire an "aggregated" event

	poll: true,
	// poll: true - use polling with the default interval
	// poll: 10000 - use polling with an interval of 10s
	// poll defaults to undefined, which prefer native watching methods
	// Note: enable polling when watching on a network path
	// When WATCHPACK_POLLING environment variable is set it will override this option
Example truncated — see the full README.

Dependencies

Declared by watchpack v2.5.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (14)

@changesets/cli ^2.30.0@changesets/get-github-info ^0.8.0@codspeed/core ^5.2.0@types/glob-to-regexp ^0.4.4@types/graceful-fs ^4.1.9@types/jest ^30.0.0@types/node ^24.10.4eslint ^9.39.2eslint-config-webpack ^4.9.3jest ^30.3.0prettier ^3.7.4tinybench ^6.0.0typescript ^6.0.2write-file-atomic ^8.0.0

Used by

Popular packages that depend on watchpack.

Relationship graph

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

graceful-fswebpackwatchpack
watchpack dependencies dependents

Frequently installed together

Release history

5 releases in the last two years, typically about 44 days apart.

Recent versions of watchpack
VersionPublishedSizeLicense
2.5.2latest3 months ago106 KBMIT
2.5.17 months ago93 KBMIT
2.5.08 months ago93 KBMIT
2.4.41 year ago56 KBMIT
2.4.31 year ago56 KBMIT
2.4.22 years ago55 KBMIT
2.4.12 years ago55 KBMIT
2.4.04 years ago56 KBMIT
2.3.14 years ago56 KBMIT
2.3.04 years ago55 KBMIT
2.2.05 years ago55 KBMIT
2.1.15 years ago54 KBMIT
2.1.05 years ago54 KBMIT
1.7.55 years ago22 KBMIT
2.0.15 years ago54 KBMIT

Overview

watchpack is an npm package that wrapper library for directory and file watching. It has 1 known dependents in the graph. The latest version is 2.5.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need wrapper library for directory and file watching 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

Frequently asked questions

Should I use watchpack?

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

How do I install watchpack?

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

How many dependencies does watchpack have?

watchpack declares 15 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 138 KB on disk.

What license is watchpack released under?

watchpack is distributed under the MIT license.

How popular is watchpack?

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

Is watchpack still maintained?

The most recent release of watchpack (v2.5.2) was published 3 months ago.

Does watchpack run install scripts?

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