1 2 3 4 5 6
var fs = require('fs') var ndjson = require('ndjson') process.stdin.pipe(ndjson.parse()).on('data', function (obj) { fs.writeFileSync('docs/' + obj.name + '.md', obj.readme) })