New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

decode-deps

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decode-deps

Dependency Graph

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-81.25%
Maintainers
1
Weekly downloads
 
Created
Source

DecodeDeps

header

DecodeDeps is a dev-tool that analyzes and visualizes module dependencies in js, jsx, ts, tsx projects. It identifies modules using import and require statements and generates a graph to illustrate these relationships. By providing a visualization of module dependencies, it offers insights for building a more structured codebase.

🚀 Last Update v.1.1.1 (November 5, 2024)

  • Fix Circular Dependency Error.
  • Update new UI about Circulr Dependency Error.

🌟 Features

  • JS, JSX, TS, TSX Support: Works seamlessly with projects using JavaScript, JSX, TypeScript, and TSX. Visualizes module dependencies by analyzing import and export statements, providing a comprehensive graph view.
  • Import & Require Support: Analyzes both import and require statements to capture all dependencies across ES and CommonJS modules.
  • Flexible Folder Input: Input folders as an array to scan one or multiple directories, making it easy to analyze entire projects or specific subfolders.
  • Dynamic Node Color: Node colors vary based on module size, offering a quick visual indication of module weight. Hover over a node to view precise module size information.
  • Interactive Graph Customization: Adjust node size and link distance with intuitive sliders. Supports drag-and-drop functionality to explore dependencies interactively.

👀 Preview

Prepare your project.

project

Enter the command.

command

Check the results on port 5001.

result

📥 Installation

npm install decode-deps

or

yarn add decode-deps

💡 How to use

Step 1. Install decode-deps.

Step 2. Run the command, npx decode-deps with input array. You can put folder names that you want to scan. For example, to analyze files within the ./src folder, use:

npx decode-deps '["./src"]'

To explore multiple folders, specify them as follows:

npx decode-deps '["./src", "./dist"]'

Step 3. After running the command, you can see the results at localhost:5001.

🔍 Who Should Use This Library?

  • Refactoring Teams. Easily identify optimization points during routine refactoring.
  • Large Codebase Managers. Efficiently handle complex module dependencies.
  • Junior Developers. Quickly understand the overall code structure.
  • Performance-Critical Project Teams. Optimize build performance with improved bundling and loading speeds.

💬 Contributing

If you'd like to contribute, feel free to submit a pull request or open an issue. Feedback to improve the project is always welcome!

📚 Docs

Find detailed documentation and updates in the Docs.

🛠 Planned Updates

The following features are planned for future updates:

  • Duplicate Dependency Tracking
  • File/Folder Search Function
  • Unused Code Detection

📝 License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 05 Nov 2024

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