
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.
check-native-modules
Advanced tools
一个用于检查项目中是否存在原生依赖(Native Modules)的 CLI 工具。
此工具可以扫描项目的 node_modules 和 package.json,识别出所有直接或间接依赖的原生模块(C/C++ Addons)。这对于跨平台部署(如 Alpine Linux, Serverless 环境)或排查构建问题非常有帮助。
无需安装,直接通过 npx 使用:
npx check-native-modules
或者全局安装:
npm install -g check-native-modules
check-native-modules
binding.gyp、gypfile、prebuild-install 等特征)。Found 2 native modules:
[Direct] canvas@2.11.2
[Indirect] fsevents@2.3.3
Requested by: chokidar
使用 @npmcli/arborist 解析实际安装的依赖树 (loadActual),并检查每个包的元数据及文件结构特征来判断是否为原生模块。如果 node_modules 不存在,会尝试读取 package-lock.json (loadVirtual) 进行静态分析(准确度可能较低)。
FAQs
一个用于检查项目中是否存在原生依赖(Native Modules)的 CLI 工具。
We found that check-native-modules 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.