Socket
Socket
Sign inDemoInstall

diagramly

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diagramly

Create diagrams (UML & other types) from React components. Not usable yet, just demonstrating the basic concept using an unit test.


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Diagramly

Create diagrams (UML & other types) from React components. Not usable yet, just demonstrating the basic concept using an unit test.

Installing

    npm install -g diagramly

Defining a statechart

Define the diagram as a React component, let's say in diagrams/PageLoadingStatechart.js. Use the built-in Statechart, State and Transition components.

const PageLoadingStateChart = props => (
    <Statechart>
        <State name="Idle" />
        <State name="Loading" />
        <Transition from="Idle" to="Loading" />
    </Statechart>
);
export default PageLoadingStateChart;

Generate the statechart:

    diagramly --create diagrams

Generating diagrams

Run

    diagramly --create <directory that contains diagrams react component>

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

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