Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dep-tracer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dep-tracer

This is a tiny tool to find a installed dependency location in your project.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Dep Tracer

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,

Install

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

Usage

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

Note

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

Package last updated on 15 Feb 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc