Socket
Socket
Sign inDemoInstall

rss-finder

Package Overview
Dependencies
56
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rss-finder

Find rss feeds url


Version published
Weekly downloads
134
increased by4.69%
Maintainers
1
Install size
2.07 MB
Created
Weekly downloads
 

Readme

Source

RSS Finder NPM version Build Status Dependency Status Coverage Status

Version: 2.1.5

Installation

Run npm install rss-finder

Usage

'use strict';

var rssFinder = require('rss-finder');

rssFinder('http://www.nytimes.com').then(function(res) {
    console.log(res);
}).catch(function(err) {
    console.log(err);
});

// or

rssFinder({
    url: 'http://www.nytimes.com'
}).then(function(res) {
    console.log(res);
}).catch(function(err) {
    console.log(err);
});

Response

{
    site: {
        title: 'The New York Times - Breaking News, World News & Multimedia',
        favicon: 'http://static01.nyt.com/favicon.ico',
        url: 'http://www.nytimes.com'
    },
    feedUrls:[{
        title: 'RSS',
        url: 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml'
    }]
}

API

rssFinder(options)

options

Type: String | Object

url

Type: String

gotOptions

This object is passed to got options directly (refer to got documentation).

feedParserOptions

This object is passed to feedparser options directly (refer to feedparser documentation).

License

MIT © 2020 Gergely Kovács (gg.kovacs@gmail.com)

Keywords

FAQs

Last updated on 30 Dec 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc