Lightweight and fast rss-parser with minimal dependencies.
const { rssParser } = require('@akolosovich/rss-parser');
// import { rssParser } from '@akolosovich/rss-parser';
const data = rssParser.parseString(...);
console.log(data);
Why to write my own parser instead of using existing one?
Firstly, I didn't find any parsers which return the same data format no matter which RSS feed I submit.
Secondly, since no one is following proper specification in their RSS feeds, I wanted to be able to parse any "incorrect" feeds (eg, Enclosure according to spec is only one per item, however many feeds add more than one).
Thirdly, I wanted to create private RSS server as a replacement for public one (eg feedly), and for this purpose I wanted to have better understanding of RSS data structure.
- fix dates
- parse and filter languages
- use proper tests