Socket
Socket
Sign inDemoInstall

@devsnicket/eunice-renderer

Package Overview
Dependencies
104
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @devsnicket/eunice-renderer

Visualize, explore and statistically measure how actual dependencies match intendend structure in YAML files generated by analyzers.


Version published
Maintainers
1
Created

Readme

Source

Eunice

DevSnicket Eunice is a toolkit based on the premise that unidirectional dependencies can be beneficial to structure and modularity in software. Euince's approach isn't limited to direct dependencies, but includes indirect dependencies as well.

try out Eunice on Eunice 🐶🥫 (created with)

Renderer

NPM Build Status Coverage Status Gitter chat

Eunice includes a YAML file format to store dependency and structure, it also includes analyzers to produce this YAML and processors of the YAML.

To visualise and explore what's in the YAML files, and to statistically measure how well they match the intended structure, a SVG renderer has been implemented in Javascript. The renderer doesn't use lines between items to show dependencies and instead marks items with counts for each dependency type:

  • matches stack (green down arrow)
  • does not match stack (red up arrow)
  • is not independent (red horizontal arrow).

Dependency counts appear for both sides of the dependency, the dependent item and the item depended upon. When there are multiple counts a summary of all counts is rendered at the bottom. [1].

scenariosvgscenariosvgscenariosvg
upper depends
upon lower
lower depends
upon upper
interdependent
(stacked)
independentfirst depends
upon second
interdependent
(not stacked)[1]

Dependencies within an item are also summarised and rendered inside the item box, below the identifer text.

scenariosvgscenariosvgscenariosvg
parent depends
upon item
item depends
upon parent
first item
depends upon
second item
(not stacked)

Items and sub-item can also be opened by clicking/tapping on their box. Opening an item will show its contents and breadcrumb links for where it is in the hierarchy.

root > grandparent

try out JavaScript → YAML → SVG

Install using npm:

npm install --save-dev @devsnicket/eunice-renderer

Or with yarn:

yarn add --dev @devsnicket/eunice-renderer

Keywords

FAQs

Last updated on 07 Jan 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc