NPM Package Watch icon

NPM Package Watch

Monitors multiple NPM packages for updates and returns the change type (major, minor, patch).

NPM Package Watch

AI-generated

Summary

Monitors multiple NPM packages for updates and returns the change type (major, minor, patch) along with version metadata.

Inputs

  • packages — An array of package entries, each containing a required packageName string and optionally a knownVersion string.

Output shape

A list of result objects, each representing the monitoring outcome for a package.

Each result includes fields like packageName, latestVersion, latestPublishedAt, knownVersion, hasChanged, changeType, previousVersion, previousPublishedAt, npmUrl, and githubUrl. If continueOnFail is disabled, errors are thrown instead of being returned.

Examples

Example 1: Monitor a set of packages for version updates.

Add the packages to watch, optionally specify knownVersion, and the node will return change type (major/minor/patch) and related metadata.

Discussion