1.10.0 • Published 2 years ago

syndication-fetcher v1.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

syndication-fetcher NPM Package

A RSS and Atom feed fetcher and parser. Given a URL, it will fetch a feed and parse it into a common JavaScript object. TypeScript types are included.

Installation

npm install syndication-fetcher

Usage

import { fetchFeed } from "syndication-fetcher";
// or using CommonJS
// const { fetchFeed } = require("syndication-fetcher");

const feed = await fetchFeed("https://example.com/feed.xml");
/* `feed` is an object that conforms to the IFeed interface described below */

TypeScript types

interface IFeed {
  title: string;
  description: string;
  link: string;
  items: Array<IFeedItem>;
}

interface IFeedItem {
  id: string;
  title: string;
  description: string;
  link: string;
  pubDate: Date | null;
  content: string; 
}
1.10.0

2 years ago

1.9.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago