Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@hyrious/dup
Advanced tools
Readme
Find duplicates in your package-lock.json / pnpm-lock.yaml.
This script is using string matching, it is very fast.
$ cd path/to/your/npm-project
$ nlx @hyrious/dup
foo@1.0.0
foo@2.0.0
You can run na why {package-name}
to find out why they are there in your dependencies tree.
The duplicates are likely to happen after you have run
taze -wi
. This is
because package managers tend to keep indirect dependencies' versions if
updating them is not necessary and for smaller downloading footprint.
You can run na dedupe
to force update all dependencies to the same version (if possible).
Some modules may deploy their function and CLI in the same package, which
results in the CLI's dependencies (yargs
, commander
, etc.) being included
in your dependencies tree and you actually does not need them.
You can add overrides to remove them, for example:
"pnpm": {
"overrides": {
"critters>chalk": "npm:noop-package@1.0.0",
"html-minifier>commander": "npm:noop-package@1.0.0"
}
}
If an indirect dependency's newer version breaks your codebase, you can either
I'm just encouraging you to use less dependencies to risk less.
MIT @ hyrious
FAQs
Find duplicates in your lockfile
The npm package @hyrious/dup receives a total of 2 weekly downloads. As such, @hyrious/dup popularity was classified as not popular.
We found that @hyrious/dup 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.