MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / getFeeds

Function getFeeds

apps/site/util/feeds.ts:66–75  ·  view source on GitHub ↗
(feed: string)

Source from the content-addressed store, hash-verified

64};
65
66export const getFeeds = (feed: string) => {
67 const blogPosts = getBlogPosts('all');
68 const websiteFeeds = generateWebsiteFeeds(blogPosts);
69
70 if (feed.includes('.xml') && websiteFeeds.has(feed)) {
71 return websiteFeeds.get(feed)!.rss2();
72 }
73
74 return undefined;
75};

Callers 1

GETFunction · 0.90

Calls 2

getBlogPostsFunction · 0.90
generateWebsiteFeedsFunction · 0.85

Tested by

no test coverage detected