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
- Host: GitHub
- URL: https://github.com/sirwanafifi/nestjs_rss_feed
- Owner: SirwanAfifi
- License: mit
- Created: 2021-02-09T19:39:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-12T08:58:03.000Z (over 5 years ago)
- Last Synced: 2025-04-19T14:35:33.390Z (about 1 year ago)
- Topics: nestjs, rss, rss-feed
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[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.
## 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(),
},
];
}
}
```