Something went wrong. Try again.
Cloudflare worker to watch RSS feeds and post updates to Discord webhooks
Something went wrong. Try again.
1234567891011121314import { parseFeed } from 'feedsmith';
const res = await fetch('https://tangled.org/burrito.space/peek/raw/main/docs/feed.xml');const text = await res.text();const { format, feed } = parseFeed(text);
console.log('Format:', format);console.log('Items:', feed.items?.length);const first = feed.items?.[0];console.log('first:', first);console.log('pubDate type:', typeof first?.pubDate, first?.pubDate instanceof Date);console.log('JSON.stringify pubDate:', JSON.stringify(first?.pubDate));console.log('new Date(pubDate):', new Date(first?.pubDate));