unified

Project: redotjs/redot

Package: redot-parse@0.5.0

  1. Dependencies: 0·Dependents: 1
  2. Graphviz dot parser for redot
  1. tree 40
  2. syntax 30
  3. ast 27
  4. parse 20
  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);