nestjs-rss-feed
v1.0.1
Published
A RSS Feed Generator
Downloads
11
Maintainers
Readme
Description
A RSS Feed generator
Usage
- 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(),
},
];
}
}