unified

Project: redotjs/redot

Package: redot-parse@0.5.0

  1. Graphviz dot parser for redot
  1. tree 44
  2. ast 37
  3. syntax 28
  4. parse 24
  5. abstract 10
  6. graphviz 5
  7. dot 5

redot-parse

NPM Version Build Status Chat

Parser for unified. Parses graphviz to an dotast syntax tree. Used in the redot processor.

Installation

npm

npm install redot-parse

Usage

var unified = require("unified");
var createStream = require("unified-stream");
var graphviz = require("redot-parse");
var stringify = require("redot-stringify");

var processor = unified()
  .use(graphviz)
  .use(stringify);

process.stdin.pipe(createStream(processor)).pipe(process.stdout);