0.1.3 • Published 4 years ago

@akolosovich/rss-parser v0.1.3

Weekly downloads
9
License
MIT
Repository
-
Last release
4 years ago

RSS Parser

Lightweight and fast rss-parser with minimal dependencies.

Usage

const { rssParser } = require('@akolosovich/rss-parser');

// import { rssParser } from '@akolosovich/rss-parser';

const data = rssParser.parseString(...);

console.log(data);

Motivation

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.

TODO

  • fix dates
  • parse and filter languages
  • use proper tests

Specs and Namespaces

Links

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago