A RSS Feed Generator
npm install nestjs-rss-feed[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.
A RSS Feed generator
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(),
},
];
}
}