Skip to content

Commit

Permalink
Update dump script to also dump meta.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmactough committed Feb 9, 2014
1 parent 9e42453 commit 3d2637f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/dump.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ var util = require('util')
process.stdin.pipe(new OpmlParser())
.on('error', console.error)
.on('readable', function() {
var stream = this, item;
while (item = stream.read()) {
console.log(util.inspect(item, null, 10, true));
var stream = this, outline;
while (outline = stream.read()) {
console.log(util.inspect(outline, null, 10, true));
}
})
.on('end', function () {
console.log(util.inspect(this.meta, null, 10, true));
});

0 comments on commit 3d2637f

Please sign in to comment.