A progressive Node.js framework for building efficient and scalable server-side applications.
A RSS Feed generator
- Install the package
yarn add nestjs-rss-feed
or
npm install nestjs-rss-feed
- Use the interceptor:
@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(),
},
];
}
}