A javascript/typescript library to search RSS feed via URL or HTML body
npm install rss-url-finderA javascript/typescript library to search RSS feed via URL or HTML body
> ⚠️ For now, is only compatible with node >=18 versions
``sh`
npm install rss-url-finderor
pnpm install rss-url-finderor
yarn add rss-url-finder
`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(
)
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