]>
git.r.bdr.sh - rbdr/graphviz-to-grafn/blob - bin/g2g
ed8e312d0ad0b8618f3af27d0fbb99124b25e975
5 const GraphvizToGrafn
= require('..');
7 const stdin
= process
.stdin
;
8 let graphvizSource
= '';
10 stdin
.setEncoding('utf8');
12 stdin
.on('data', function (chunk
) {
14 graphvizSource
+= chunk
;
17 stdin
.on('end', function () {
19 console
.log(GraphvizToGrafn(graphvizSource
));
22 stdin
.on('error', console
.error
);