Skip to content

Commit

Permalink
Update example code
Browse files Browse the repository at this point in the history
  • Loading branch information
danmactough committed Jun 14, 2013
1 parent 91fa1ce commit b0cb44c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/simple.js
Expand Up @@ -9,6 +9,9 @@ var FeedParser = require(__dirname+'/..')
, feed = __dirname+'/../test/feeds/rss2sample.xml';

fs.createReadStream(feed)
.on('error', function (error) {
console.error(error);
})
.pipe(new FeedParser())
.on('error', function (error) {
console.error(error);
Expand Down

0 comments on commit b0cb44c

Please sign in to comment.