Converts both RSS and Atom feeds to JSONFeed format. A hosted version exists at feed2json.org.
Even though JSON has it's problems, it is hundreds of times better than dealing with XML. Therefore, this package is designed to help you convert from RSS or Atom feeds into JSONFeed format. At that point you know what you have and can deal with is more effectively. It will also convert any non-UTF8 feeds too since JSON is UTF8 by default.
This project contains the converter but does not fetch the feed for you, you must do that yourself.
Example showing a conversion of an RSS file on disk:
let stream = fsfeed2json
Example showing a conversion from an Atom feed fetched with
let url = ""let req =feed2json
Example showing a conversion from a feed already in a string variable:
let url = ""let str ='<?xml version="1.0" encoding="UTF-8"?>"''<rss version="2.0">''...etc...''</rss>'feed2json
Note: this package has been tested on https://feed2json.org and has converted many feeds to JSONFeed. It's not perfect I'm sure, but it's doing a decent job. Please send any PRs or patches my way so we can improve the conversion process together. :) Many thanks.