{"repo":"rbren/rss-parser","free":true,"listed":false,"github":"https://github.com/rbren/rss-parser","clone":"git clone https://github.com/rbren/rss-parser.git","description":"A lightweight RSS parser, for Node and the browser","language":"JavaScript","stars":1526,"topics":["rss","json","xml","rss-feed","rss-reader","rss-parser","nodejs"],"license":"MIT","category":"productivity","readme_excerpt":"rss-parser [![Version][npm-image]][npm-link] [![Build Status][build-image]][build-link] [![Downloads][downloads-image]][npm-link] [downloads-image]: https://img.shields.io/npm/dm/rss-parser.svg [npm-image]: https://img.shields.io/npm/v/rss-parser.svg [npm-link]: https://npmjs.org/package/rss-parser [build-image]: https://github.com/rbren/rss-parser/workflows/tests/badge.svg [build-link]: https://github.com/rbren/rss-parser/actions A small library for turning RSS XML feeds into JavaScript objects. Installation Usage You can parse RSS from a URL ( parser.parseURL ) or an XML string ( parser.parseString ). Both callbacks and Promises are supported. NodeJS Here's an example in NodeJS using Promises with async/await: TypeScript When using TypeScript, you can set a type to control the custom fields: Web We recommend using a bundler like webpack, but we also provide pre-built browser distributions in the dist/ folder. If you use the pre-built distribution, you'll need a polyfill for Promise support. Here's an example in the browser using callbacks: Upgrading from v2 to v3 A few minor breaking changes were made in v3. Here's what you need to know: You need to construct a new Parser() before calling parseString or parseURL parseFile is no longer available (for better browser support) options are now passed to the Parser constructor parsed.feed is now just feed (top-level object removed) feed.entries is now feed.items (to better match RSS XML) Output Check out the full output format in","default_branch":null,"files":null,"tree":[],"storefront":"/r/rbren","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rbren/rss-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}