A RSS Feed generator for nestjs
A progressive Node.js framework for building efficient and scalable server-side applications.
@nestjs/core.svg" alt="NPM Version" />
@nestjs/core.svg" alt="Package License" />
@nestjs/common.svg" alt="NPM Downloads" />
A RSS Feed generator
yarn add nestjs-rss-feed
or
npm install nestjs-rss-feed
@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(),
},
];
}
}