
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
With the help of xml-js, RSS-URLs are processed and transformed into RSS feeds, packaged as flat, unstyled HTML*, ready to be embedded on your website.
Note: This project was primarily created as part of a university course assignment and is therefore a learning exercise, rather than an actual module for public use. With that said, feel free to use the module as you wish.
rss2html takes a raw RSS-feed URL and processes it in multiple steps to finally deliver HTML-ready code you can copy and paste to your website and style as you wish. The data is also delivered as a structured array, making it easy to apply logic such as sorting and filtering to the feed.
Import the function convertRssToHtml from the package as shown below, paste your RSS-feed URL as an argument and run it in Node with the command node <filename-function-is-imported-into>.js.
import { convertRssToHtml } from "rss2html";
const result = await convertRssToHtml(url);
console.log(result);
| Property | Type | Description |
|---|---|---|
htmlOutput | string | HTML markup for all feed entries |
arrayOutput | Array<Object> | Parsed entries containing: author, title, link, and published |
{
htmlOutput: '<div>John Smith</div><div>'rss2html is the coolest module on the street - here's why'</div>...,
arrayOutput: [
{
author: 'John Smith',
title: 'rss2html rocks',
link: 'www.github.com/lambergmiki',
published: 'Date: 2025-10-17, time: 13:52:11'
},
{
author: '...',
title: '...',
link: '...',
published: '...',
}
]
}
Output once pasted into an HTML-file:
<div>'John Smith'</div>
<div>'rss2html is the coolest module on the street - here's why'</div>
<div>'www.github.com/coolestnews/available/here'</div>
<div>'Date: 2025-09-24, time: 15:35:00'</div>
<br />
<div>'Dave Peterson'</div>
<div>...</div>
<div>...</div>
<div>...</div>
npm install rss2html
Thanks for your interest!
Feel free to report any bugs, or request features, in the issues tab.
Do you have a great idea on how to improve the module? Fork the repository, implement your idea and open a pull request.
Distributed under the MIT License. See LICENSE.txt for more information.
Issues can be found in the issues tab of the repo, right here.
Did you find bugs that are not yet listed as issues, or do you simply want a chat? E-mail me or send me a DM on LinkedIn (both can be found at the top of this README).
FAQs
Convert RSS/Atom to a HTML-ready-feed
We found that rss2html demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.