diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2020-09-20 18:41:08 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2020-09-20 18:41:08 +0200 |
| commit | a597c68201245e9e7b7d3d2ef62134588581ed3f (patch) | |
| tree | b8ecfc6b3ea2bb7efccea17e7439fb162ce5beb0 /bin | |
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/g2g | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#!/usr/bin/env node + +'use strict'; + +const GraphvizToGrafn = require('..'); + +const stdin = process.stdin; +let graphvizSource = ''; + +stdin.setEncoding('utf8'); + +stdin.on('data', function (chunk) { + + graphvizSource += chunk; +}); + +stdin.on('end', function () { + + console.log(GraphvizToGrafn(graphvizSource)); +}); + +stdin.on('error', console.error); |