diff options
Diffstat (limited to 'scripts/build.js')
-rw-r--r-- | scripts/build.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build.js b/scripts/build.js new file mode 100644 index 0000000..136d99a --- /dev/null +++ b/scripts/build.js @@ -0,0 +1,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) +}) |