0.2.0 • Published 1 year ago

@kyonru/react-native-rss-parser v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@kyonru/react-native-rss-parser

React Native compatible package to parse RSS feeds

Installation

npm install @kyonru/react-native-rss-parser

Usage

import * as RssParser from '@kyonru/react-native-rss-parser';

export const getParsed = async (url: string) => {
  const request = await fetch(url);
  const response = await request.text();

  const parsed = await RssParser.parse(response); // or parseToJson, which will parse the whole object ignoring specifications, might contain unnecessary data

  return (parsed || {}) as RssParser.Rss;
};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Based on jameslawler/react-native-rss-parser

0.2.0

1 year ago