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