aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build.js
blob: 136d99aa83052d4be0c7179b8995edc5052983b4 (plain)
1
2
3
4
5
6
7
8
var fs = require('fs')
var mkdirp = require('mkdirp')
var ndjson = require('ndjson')

mkdirp.sync('docs/modules')
process.stdin.pipe(ndjson.parse()).on('data', function (obj) {
  fs.writeFileSync('docs/modules/' + obj.name + '.md', obj.readme)
})