
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
find-duplicate-dependencies
Advanced tools
Find duplicate dependencies in your node_modules. Useful when use npm as a package manager for front-end.
Finds duplicate dependencies in your node_modules. Useful when use npm as a package manager for front-end.
for CLI usage
npm install -g find-duplicate-dependencies
for API usage
npm install find-duplicate-dependencies
find-duplicate-dependencies
This command exits with 1 if there are some duplicates and with 0 if there are not.
You can exclude some dependencies from check by passing --exclude
option:
find-duplicate-dependencies --exclude express,react
const findDuplicateDependencies = require('find-duplicate-dependencies');
findDuplicateDependencies().then((duplicates) => {
/*
duplicates has the following format:
{
"tar": [
{
name: 'tar',
version: '1.0.3',
from: 'tar@>=1.0.0 <2.0.0',
path: 'test/npm/node-gyp'
},
{
name: 'tar',
version: '2.1.1',
from: 'tar@>=2.1.1 <2.2.0',
path: 'test/npm'
}
],
"mime-types": [
{
name: 'mime-types',
version: '2.1.2',
from: 'mime-types@>=2.1.1 <3.0.0',
path: 'test/npm/request/form-data'
},
{
name: 'mime-types',
version: '2.0.14',
from: 'mime-types@>=2.0.1 <2.1.0',
path: 'test/npm/request'
}
]
}
*/
if (Object.keys(duplicates).length > 0) {
printFailMessage(duplicates);
return process.exit(1);
}
printSuccessMessage();
}).catch((error) => {
console.error(error.stack);
return process.exit(1);
});
FAQs
Find duplicate dependencies in your node_modules. Useful when use npm as a package manager for front-end.
The npm package find-duplicate-dependencies receives a total of 94 weekly downloads. As such, find-duplicate-dependencies popularity was classified as not popular.
We found that find-duplicate-dependencies demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.