]> git.r.bdr.sh - rbdr/graphviz-to-grafn/blame - bin/g2g
Initial version
[rbdr/graphviz-to-grafn] / bin / g2g
CommitLineData
a597c682
RBR
1#!/usr/bin/env node
2
3'use strict';
4
5const GraphvizToGrafn = require('..');
6
7const stdin = process.stdin;
8let graphvizSource = '';
9
10stdin.setEncoding('utf8');
11
12stdin.on('data', function (chunk) {
13
14 graphvizSource += chunk;
15});
16
17stdin.on('end', function () {
18
19 console.log(GraphvizToGrafn(graphvizSource));
20});
21
22stdin.on('error', console.error);