xml-streamify icon indicating copy to clipboard operation
xml-streamify copied to clipboard

ReadableStream parse input

Open dbushell opened this issue 1 year ago • 0 comments

For issue #1 - this PR allows an optional ReadableStream input to the parse function instead of a URL.

Current URL example:

const parser = parse('https://feed.syntax.fm/rss');

Stream example:

const response = await fetch('https://feed.syntax.fm/rss');
const parser = parse(response.body);

I've updated the Deno example to use both.

dbushell avatar Mar 12 '24 08:03 dbushell