#!/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);