An open API service indexing awesome lists of open source software.

https://github.com/sirwanafifi/nestjs_rss_feed

A RSS Feed generator for nestjs
https://github.com/sirwanafifi/nestjs_rss_feed

nestjs rss rss-feed

Last synced: about 1 year ago
JSON representation

A RSS Feed generator for nestjs

Awesome Lists containing this project

README

          


Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications.



NPM Version
Package License
NPM Downloads
CircleCI
Coverage
Discord
Backers on Open Collective
Sponsors on Open Collective

Support us


## Description

A RSS Feed generator

## Usage

1. Install the package

```js
yarn add nestjs-rss-feed
or
npm install nestjs-rss-feed
```

2. Use the interceptor:

```js
@Controller()
export class AppController {
@UseInterceptors(
new RssInterceptor({
link: "https://example.com",
})
)
@Get()
posts() {
return [
{
title: "Post One",
authorName: "Sirwan",
content: "This is a sample content",
categories: ["JS", "React"],
url: "",
lastUpdatedTime: new Date(),
publishDate: new Date(),
},
];
}
}
```