danmactough / node-feedparser

Robust RSS, Atom, and RDF feed parsing in Node.js
Other
1.97k stars 192 forks source link

'end' event? #163

Closed danwdart closed 8 years ago

danwdart commented 8 years ago

Hi

Is it possible to emit an 'end' event, or better, support promises? I'd like to know when the stream has ended so I can resolve a promise and pass the finished data.

Cheers

mooyoul commented 8 years ago

Yup you can. feedparser emits end event. I'm using this event to resolve my own Promise method.

See fetch function on this example

danwdart commented 8 years ago

Lovely, thanks!