Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@hyrious/dup
Advanced tools
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
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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.