aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
authorMax Ogden <max@maxogden.com>2016-08-05 12:36:08 -0700
committerMax Ogden <max@maxogden.com>2016-08-05 12:36:08 -0700
commit416108575f8207d687c52ca079117bcc5cfdb515 (patch)
treea6b6a2d5624b8edcbb6e4542714785f91e581649 /build.js
parent6879daedad2d53e32d1d9d7bf8b1c74574bc28ef (diff)
parentffb465bb3bcebb62c5e63cc3ed80d70274848deb (diff)
downloaddat-docs-416108575f8207d687c52ca079117bcc5cfdb515.tar.gz
dat-docs-416108575f8207d687c52ca079117bcc5cfdb515.zip
Merge branch 'master' of https://github.com/datproject/docs
Diffstat (limited to 'build.js')
-rw-r--r--build.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.js b/build.js
new file mode 100644
index 0000000..33d1afe
--- /dev/null
+++ b/build.js
@@ -0,0 +1,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)
+}) \ No newline at end of file