
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
rss-url-finder
Advanced tools
A javascript/typescript library to search RSS feed via URL or HTML body
A javascript/typescript library to search RSS feed via URL or HTML body
⚠️ For now, is only compatible with node >=18 versions
npm install rss-url-finder
# or
pnpm install rss-url-finder
# or
yarn add rss-url-finder
import { getRssUrlsFromHtmlBody, getRssUrlsFromUrl } from 'rss-url-finder'
// If you need to search from URL
getRssUrlsFromUrl('https://cr0wg4n.medium.com/')
.then((rssUrls) => {
console.log(rssUrls)
})
// Result:
// [
// {
// name: 'RSS',
// url: 'https://medium.com/feed/@cr0wg4n'
// }
// ]
// If you need to search from HTML body
const rssUrls = getRssUrlsFromHtmlBody(`
<!doctype html>
<html lang="en" itemscope>
<head>
<meta name="generator" content="Hexo 5.4.2"><link rel="alternate" href="/atom.xml" title="Dev-Academy.com - Web security | Testing & automation | Application architecture" type="application/atom+xml">
<link rel="alternate" href="/rss2.xml" title="Dev-Academy.com - Web security | Testing & automation | Application architecture" type="application/rss+xml">
<link rel="canonical" href="https://dev-academy.com/">
</head>
</figure>
<header>
<div class="post-time">
<time datetime="2022-12-22T00:00:00.000Z">22 December 2022</time>
</div>
</header>
<body>
...... AND EXAMPLE OF HTML ...........
<script src="https://my.hellobar.com/3211232132.js" data-cookieconsent="ignore" charset="utf-8" async="async"></script>
</body>
</html>
`)
console.log(rssUrls)
// Result:
// [
// {
// name: 'Dev-Academy.com - Web security | Testing & automation | Application architecture',
// url: 'https://dev-academy.com/rss2.xml'
// },
// {
// name: 'Dev-Academy.com - Web security | Testing & automation | Application architecture',
// url: 'https://dev-academy.com/atom.xml'
// }
// ]
Feel free to contribute to this repository
Made with ❤️ by cr0wg4n
FAQs
A javascript/typescript library to search RSS feed via URL or HTML body
The npm package rss-url-finder receives a total of 72 weekly downloads. As such, rss-url-finder popularity was classified as not popular.
We found that rss-url-finder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.