This package has been deprecated

Author message:

react-graphviz has been renamed autoflow-graphviz, please update your dependencies to get the latest updates

react-graphviz

0.7.0 • Public • Published

react-graphviz

react-graphviz is a plugin for react, the flow control rules engine, which can use graphviz to generate flow diagrams for the dependencies

For more information on react the lightweight flow control rules engine: http://github.com/jeffbski/react

Goals

Generate graphviz diagrams for flow definitions that:

  • show relationship between inputs, tasks, and outputs
  • show dependencies between inputs, outputs, and other preconditions
  • create PNG, PDF, GIF, or DOT files in a designated directory

Prerequisites

  • Install graphviz on your system - http://www.graphviz.org/
  • React 0.5.2+ is needed because it exposes the events needed by react-graphviz

Installing

First install the open source graphviz software if not already installed on your system. You can find all about it at http://www.graphviz.org/ It can be downloaded or installed via a package manager.

For example:

brew install graphviz  # mac OS X 
apt-get install graphviz  # ubuntu and debian linux 

This should put graphviz binaries on your path, react-graphviz uses dot, so make sure that dot is on your path, then you can install react-graphviz.

    npm install react-graphviz   # install locally 

OR

    npm install -g react-graphviz  # installs globally 

OR

Pull from github - http://github.com/jeffbski/react-graphviz

Example

# if you installed locally 
node_modules/bin/react-graphviz JSFilePath
# OR if using globally 
react-graphviz JSFilePath

Usage

  Usage: react-graphviz <JSPath ...> [options]

  Options:

    -h, --help                               output this usage information
    -V, --version                            output the version number
    -t, --type <type>                        type of output (png, pdf, gif, dot), default: png
    -i, --include <flowName[,flowName,...]>  limit graphing to only these flowNames
    -o, --output <outDir>                    output directory (should exist), default to cwd (.)

License

Contributors

  • Author: Jeff Barczewski (@jeffbski)

Contributing

Readme

Keywords

none

Package Sidebar

Install

npm i react-graphviz

Weekly Downloads

4

Version

0.7.0

License

none

Last publish

Collaborators

  • jeffbski