jpmonette/feed — reverse-engineered prompt
Reverse engineered prompt
Build me a Node.js library that makes it easy for a website owner or blogger to generate feeds for their site. I want a simple TypeScript API where I create a feed with the site title, description, links, language, image, favicon, copyright, author info, and feed URLs, then add posts with title, link, date, summary, full HTML content, authors, contributors, categories, images, audio, video, or other attachments.
It should be able to output the same content as RSS 2.0, Atom 1.0, and JSON Feed 1.0 with methods that return the final XML or JSON strings. Please include support for common extras like feed categories, contributors, custom extensions, self links, hubs, time to live, stylesheets, and podcast related fields where they fit. Make it type safe, well tested with snapshots for each format, and include a clear README example showing how to install it and use it in both modern import style and require style. Look up current feed format details online if you need to.
Want more depth? Deep Reverse