
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
CLI tool that fast checks if your bundle contains multiple versions of the same package, only by looking in package.json.
CLI tool that fast checks if your bundle contains multiple versions of the same package, only by looking in package.json.
Advantages:
faster than alternatives, since it doesn't require rebuilding the bundle (example, duplicate-package-checker-webpack-plugin);
uses only package.json;
suggests optimal package versions; see how
you can quickly see all the current versions of the same package that are used in the current bundle. see how
npm i -g ostap
# create package.json if not exists
echo "{\"name\":\"demo-project\",\"version\":\"1.0.0\",\"dependencies\":{\"@nivo/bar\":\"0.54.0\",\"@nivo/core\":\"0.53.0\",\"@nivo/pie\":\"0.54.0\",\"@nivo/stream\":\"0.54.0\"}}" > ./package.json
ostap ./package.json -s
For example, you have package.json
:
{
"name": "demo-project",
"version": "1.0.0",
"dependencies": {
"@nivo/bar": "0.54.0",
"@nivo/core": "0.53.0",
"@nivo/pie": "0.54.0",
"@nivo/stream": "0.54.0"
}
}
ostap ./package.json
ostap ./package.json -s
npm i -g ostap
Options:
-c, --use-cache Use cache
-d, --duplicates Show duplicates in source and optimal tree
-s, --source-tree-duplicates Show duplicates in source tree
-o, --optimal-tree-duplicates Show duplicates in optimal tree
-v, --version Display version number
-h, --help Display help
Got ideas on how to make this better? Open an issue!
MIT
FAQs
CLI tool that fast checks if your bundle contains multiple versions of the same package, only by looking in package.json.
We found that ostap demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.