Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (20 sloc) 0.595 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/usr/bin/env node

var buf = '';
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk){
  buf += chunk;
}).on('end', function(){
  var comments = JSON.parse(buf);
  comments.forEach(function(comment){
    if (comment.ignore) return;
    if (comment.isPrivate) return;
    if (!comment.ctx) return;
    if (!comment.description.full.indexOf('Module dep')) return;
    var ctx = comment.ctx;
    console.log();
    console.log('# %s', ctx.string);
    console.log();
    console.log(comment.description.full.trim().replace(/^/gm, ' '));
  });
  console.log();
}).resume();
Something went wrong with that request. Please try again.