
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
This is a tiny tool to find a installed dependency location in your project.
Imagine you are working in a framework like Next.js or Modern.js, maybe you want to debug into the ts-loader
or babel-loader
under that framework, and you are using pnpm workspace, it would be hard to find the package location, like ~/my-app/node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors
.
So you can use this little tool to help you, just type dep-tracer picocolors
at your project root, or you can be more accurate, dep-tracer next postcss picocolors
,
npm i dep-tracer -g
pnpm i dep-tracer -g
yarn add dep-tracer -g
Or use latest and not install locally:
npx dep-tracer foo
dep-tracer next postcss picocolors
# output like
Found:
Locations: /my-app/node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors
Through: next > postcss > picocolors
Cost: 13ms
Or you can use dt
as alias
dt next postcss picocolors
If you are trying to locate a dep from depA > depB > depC > depD > depE > target
, if you give it target
as only input, it will fail as the dependency chain is too deep.
But you can provide more detail information, like depC target
, when it reached dependency depC
, it will reset depth 0, so it can continue resolving, and succeed to resolve target
.
The more detail you provide, the faster it can run.
FAQs
This is a tiny tool to find a installed dependency location in your project.
The npm package dep-tracer receives a total of 0 weekly downloads. As such, dep-tracer popularity was classified as not popular.
We found that dep-tracer 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’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.