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

@wroud/di-tools-analyzer

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wroud/di-tools-analyzer

DI Tools Analyzer is a tool that helps you to analyze the dependency injection tools in your project and generate a report for them.

  • 0.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@wroud/di-tools-analyzer

@wroud/di-tools-analyzer is a powerful tool designed to enhance your experience with the @wroud/di dependency injection library. This tool provides capabilities to analyze the service container built with @wroud/di, allowing you to gain deeper insights into your application's dependency graph.

Features

  • Data Collection: Collect detailed information about the service container in a serializable JSON format.
  • Visualization: Utilize D3.js to visualize the collected data, making it easier to understand the relationships and dependencies between services.
  • Integration: Seamlessly integrate with @wroud/di, providing an easy-to-use interface for analyzing and visualizing your service container.

Installation

You can install @wroud/di-tools-analyzer using npm, yarn, pnpm, or bun:

npm

npm install @wroud/di-tools-analyzer

Install via yarn

yarn add @wroud/di-tools-analyzer

Usage

import { ServiceContainerBuilder } from "@wroud/di";
import { getDependenciesGraph, createChart } from "@wroud/di-tools-analyzer";

const builder = new ServiceContainerBuilder();
// Register your services

// Collect dependencies graph
const data = await getDependenciesGraph(builder);

// Serialize the data if needed
const jsonData = JSON.stringify(data);

// Visualize
const svg = document.createElement("svg");
const width = 512;
const height = 512;
const chart = createChart(svg, width, height); // Initialize D3.js
chart.update(graph); // Render graph

Documentation

For detailed usage and API reference, visit the documentation site.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

FAQs

Package last updated on 07 Feb 2025

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