
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
CLI tool to find npm package versions compatible with the current Node.js version
A CLI tool to find npm package versions compatible with the current Node.js version.
# Install globally
npm install -g pkgcompat
# Or run directly with npx
npx pkgcompat <package-name>
# Show all compatible versions of a package with current Node.js version
pkgcompat <package-name>
# Show only the latest compatible version
pkgcompat <package-name> --latest
# Check compatibility within a specific version range
pkgcompat <package-name> --range ">=1.0.0 <2.0.0"
# Check compatibility with a specific Node.js version
pkgcompat <package-name> --node-version "18.12.0"
pkgcompat <package-name> -n "18.12.0"
# Limit the number of versions to show (default: all)
pkgcompat <package-name> --limit 10
# Check compatible versions of express
pkgcompat express
# Output:
# Checking compatibility with Node.js version: v20.11.0
# Compatible versions for express with Node.js v20.11.0:
# 4.21.2
# 4.21.1
# 4.21.0
# ...
This tool uses the package-json library to fetch package metadata from the npm registry and semver to check version compatibility against your current Node.js version (or a specified version). It examines the engines.node field in each package version to determine compatibility.
FAQs
CLI tool to find npm package versions compatible with the current Node.js version
We found that pkgcompat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.