# rss-url-finder

> A javascript/typescript library to search RSS feed via URL or HTML body

Latest version **0.0.6** (published 2024-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install rss-url-finder
pnpm add rss-url-finder
yarn add rss-url-finder
bun add rss-url-finder
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2024-08-27 |
| First published | 2023-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 18.0.0 |
| Dependencies | 1 |
| Unpacked size | 21.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Mauricio Matias |
| Maintainers | cr0wg4n |
| Keywords | rss, rss-finder, feeds |

## Links

- npm: https://www.npmjs.com/package/rss-url-finder
- Repository: https://github.com/cr0wg4n/rss-url-finder
- Homepage: https://github.com/cr0wg4n/rss-url-finder#readme
- Issues: https://github.com/cr0wg4n/rss-url-finder/issues
- npm.io page: https://npm.io/package/rss-url-finder

## Dependencies (1)

- [node-html-parser](https://npm.io/package/node-html-parser.md) ^6.1.5

## Recent versions

- 0.0.6 (latest) — 2024-08-27
- 0.0.5-1 — 2023-05-11
- 0.0.5 — 2023-05-11
- 0.0.4-3 — 2023-05-09
- 0.0.4-2 — 2023-05-05
- 0.0.4-1 — 2023-05-05
- 0.0.4 — 2023-05-05
- 0.0.3 — 2023-05-05
- 0.0.2 — 2023-05-04
- 0.0.1 — 2023-05-04

## README

# RSS URL Finder

A javascript/typescript library to search RSS feed via URL or HTML body 

## Installation

> ⚠️ For now, is only compatible with node >=18 versions
```sh
npm install rss-url-finder
# or
pnpm install rss-url-finder
# or
yarn add rss-url-finder
```

## How to use

```js
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](https://github.com/cr0wg4n/rss-url-finder)


Made with ❤️ by [cr0wg4n](cr0wg4n.github.io)

---
_Source: https://npm.io/package/rss-url-finder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
