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

9 lines
180 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
var logfmt = require('../logfmt');
var through = require('through');
process.stdin
.pipe(logfmt.streamParser())
.pipe(through(function(object){
console.log(object);
}))