New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

grouped-graph

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grouped-graph

Nested graph visualization widget

latest
Source
npmnpm
Version
0.4.1
Version published
Maintainers
1
Created
Source

Grouped Dependency Graph

Visualize dependencies between groups of components.

Check out an example source code dependency graph here.

The graph above is generated using example/data.json:

{
  "rootNode": "layout",
  "nodes": [
    {
      "name": "layout",
      "children": [
        {
          "name": "layout/index.js",
          "targets": [ "footer/index.js", "header/index.js" ]
        }
      ]
    }, {
      "name": "footer",
      "children": [
        {
          "name": "footer/index.js",
          "targets": [ "footer/components/Footer.jsx" ]
        }, {
          "name": "footer/components/Footer.jsx",
          "targets": [ "footer/components/FooterAnimation.jsx", "utils/clone.js" ]
        }, {

Features

Clicking a node displays the list of the components within that node and selects it.

Hovering over a node highlights the shortest path from the rootNode or selected node.

Installation

npm install --save grouped-graph

API

import groupedGraph from 'grouped-graph'
import data from './data.json'

const root = document.querySelector('.visualization')

const options = { width: 800, height: 800 }
const visualization = groupedGraph.createVisualization(data, options)
visualization.attach(root)

Development

git clone git@github.com:noahsug/grouped-graph.git
cd grouped-graph
npm run start
npm run build:example -- --watch

Keywords

grouped

FAQs

Package last updated on 04 May 2018

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