GT2/GT2-Android/node_modules/logfmt/examples/simple_cmd.js

9 lines
180 B
JavaScript

var logfmt = require('../logfmt');
var through = require('through');
process.stdin
.pipe(logfmt.streamParser())
.pipe(through(function(object){
console.log(object);
}))