{"size": 490, "ext": "js", "max_stars_repo_path": "example/multiple-files.js", "max_stars_repo_name": "akiva/marked-stream", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "example/multiple-files.js", "max_issues_repo_name": "akiva/marked-stream", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "example/multiple-files.js", "max_forks_repo_name": "akiva/marked-stream", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.2727272727, "max_line_length": 74, "alphanum_fraction": 0.6408163265}
var fs = require('fs');
var MarkedStream = require('..');
var highlight = require('highlight.js');
var gs = require('glob-stream');

var options = {
  highlight: function (code) {
    return highlight.highlightAuto(code).value;
  },
  gfm: true,
  tables: true,
  breaks: true
};

var stream = gs.create([__dirname + '/*.md', '!' + __dirname + '/fm.md']);

stream.on('data', function (file) {
  fs.createReadStream(file.path)
    .pipe(MarkedStream(options))
    .pipe(process.stdout);
});
