🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

rss2html

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss2html

Convert RSS/Atom to a HTML-ready-feed

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

rss2html

MIT License Email LinkedIn

Generate HTML templates from RSS feeds

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.

* as of 18/10-2025 the final output is an object containing ready-to-paste HTML, but also a structured array for easier data manipulation (e.g. sorting, filtering, adding and removing articles). See the data structure in Example output.

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.

How does it work?

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.

Example in Node.js

import { convertRssToHtml } from "rss2html";

const result = await convertRssToHtml(url);
console.log(result);

Example output

Output structure

PropertyTypeDescription
htmlOutputstringHTML markup for all feed entries
arrayOutputArray<Object>Parsed entries containing: author, title, link, and published

Output in terminal if result is logged in console:
{
    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>

Installation

npm install rss2html

How to contribute

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.

License

Distributed under the MIT License. See LICENSE.txt for more information.

Issues

Issues can be found in the issues tab of the repo, right here.

Contact

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).

Keywords

rss

FAQs

Package last updated on 18 Oct 2025

Did you know?

Socket

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.

Install

Related posts