Skip to content

Latest commit

 

History

History
64 lines (55 loc) · 3.01 KB

README.md

File metadata and controls

64 lines (55 loc) · 3.01 KB

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

A RSS Feed generator

Usage

  1. Install the package
yarn add nestjs-rss-feed
or
npm install nestjs-rss-feed
  1. 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(),
      },
    ];
  }
}