Index / Questions / How do you generate an RSS feed with Nod

How do you generate an RSS feed with NodeJS?

Answer

Use the Feed module from npm. I added a generateFeeds() function to my NodeJS static site generator that maps my post fields (title, image URL, publishing date) to the RSS structure and writes RSS, Atom and JSON feeds.

Sources