# gatsby-source-rss-feeds

> gatsby source parser for rss feeds

Latest version **1.0.5** (published 2022-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-source-rss-feeds
pnpm add gatsby-source-rss-feeds
yarn add gatsby-source-rss-feeds
bun add gatsby-source-rss-feeds
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-04-13 |
| First published | 2021-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daren Malfait |
| Maintainers | daren |
| Keywords | gatsby, source, rss |

## Links

- npm: https://www.npmjs.com/package/gatsby-source-rss-feeds
- Repository: https://github.com/daren-malfait/gatsby-source-rss-feeds
- Homepage: https://github.com/daren-malfait/gatsby-source-rss-feeds#readme
- Issues: https://github.com/daren-malfait/gatsby-source-rss-feeds/issues
- npm.io page: https://npm.io/package/gatsby-source-rss-feeds

## Dependencies (3)

- [gatsby](https://npm.io/package/gatsby.md) ^3.3.0
- [rss-parser](https://npm.io/package/rss-parser.md) ^3.12.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.13.10

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2022-04-13
- 1.0.4 — 2021-04-17
- 1.0.3 — 2021-04-07
- 1.0.2 — 2021-04-06
- 1.0.1 — 2021-04-06
- 1.0.0 — 2021-04-06

## README

<div align="center">
<h1>gatsby-source-rss-feeds</h1>

<p>Source plugin for pulling data into Gatsby from RSS feed based on <a href="https://github.com/mottox2/gatsby-source-rss-feed">gatsby-source-rss-feed</a>.</p>
</div>

---

<!-- prettier-ignore-start -->
[![Build Status][build-badge]][build]
[![version][version-badge]][package]
[![MIT License][license-badge]][license]
<!-- prettier-ignore-end -->

## The problem

When loading a xml file with empty values, `gatsby-source-rss-feed` converted the rss in objects which in turn gave errors.

## This solution

Build on the plugin and make sure the empty fields are handled.

## Table of Contents

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Installation](#installation)
- [Usage](#usage)
  - [basic pattern](#basic-pattern)
  - [use multiple feed](#use-multiple-feed)
- [How to query](#how-to-query)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Installation

This module should be installed as one of your project's `dependencies`:

```
npm install --save gatsby-source-rss-feeds
```

## Usage

### basic pattern

```js
// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-rss-feeds`,
      options: {
        url: `https://www.gatsbyjs.org/blog/rss.xml`,
        name: `GatsbyBlog`,
      }
    }
  ]
}
```

### use multiple feed


```js
// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-rss-feeds`,
      options: {
        url: `https://www.gatsbyjs.org/blog/rss.xml`,
        name: `GatsbyBlog`,
      }
    }
    {
      resolve: `gatsby-source-rss-feeds`,
      options: {
        url: `https://www.gatsbyjs.org/blog/rss.xml`,
        name: `MyBlog`,
      }
    }
  ]
}
```

## How to query

Query is `Feed${name}`.

When name of options is `GatsbyBlog`, query named as `FeedGatsbyBlog`.

```graphql
{
  allFeedGatsbyBlog {
    edges {
      node {
        title
        link
        content
      }
    }
  }

  feedGatsbyBlog {
    title
    link
    content
  }
}
```


<!-- prettier-ignore-start -->
[npm]: https://www.npmjs.com
[node]: https://nodejs.org
[build-badge]: https://img.shields.io/github/workflow/status/daren-malfait/gatsby-source-rss-feeds/CI?logo=github&style=flat-square
[build]: https://github.com/daren-malfait/gatsby-source-rss-feeds/actions?query=workflow
[version-badge]: https://img.shields.io/npm/v/gatsby-source-rss-feeds.svg?style=flat-square
[package]: https://www.npmjs.com/package/gatsby-source-rss-feeds
[downloads-badge]: https://img.shields.io/npm/dm/gatsby-source-rss-feeds.svg?style=flat-square
[license-badge]: https://img.shields.io/npm/l/gatsby-source-rss-feeds.svg?style=flat-square
[license]: https://github.com/daren-malfait/gatsby-source-rss-feeds/blob/main/LICENSE
<!-- prettier-ignore-end -->

---
_Source: https://npm.io/package/gatsby-source-rss-feeds · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
