Created
December 9, 2014 11:27
-
-
Save mikklfr/024e72a5c5bb035578d8 to your computer and use it in GitHub Desktop.
parse concat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parse = require("jsdoc-parse"); | |
var concat = require('concat-stream') | |
var concatDocStream = concat(gotDoc); | |
function gotDoc(buffer) { | |
var doc = JSON.parse(buffer.toString()); | |
console.log(doc[0]); | |
} | |
parse("test.js").pipe(concatDocStream); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment