Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parseBuffer method #220

Open
paya-cz opened this issue Nov 15, 2021 · 1 comment
Open

Add parseBuffer method #220

paya-cz opened this issue Nov 15, 2021 · 1 comment

Comments

@paya-cz
Copy link

paya-cz commented Nov 15, 2021

My RSS feed has encoding="ISO-8859-1" in the header. I cannot use parser.parseURL because I need to implement custom error handling and rate limiting. The only alternative is using parser.parseString, but to use it I would need to already have a decoded string. I only have a Buffer with unknown encoding, and I would like to pass it to rss-parser to decode. I think a new function parser.parseBuffer would be appropriate for this task, and I imagine it can share a lot of code with parser.parseURL.

@rbren
Copy link
Owner

rbren commented Jan 14, 2022

👍 this seems like a great idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants