detectfeed

0.1.19 • Public • Published

detectfeed

Detect RSS/Atom feed for an URL

Install

Install with npm

npm install detectfeed

Usage

Use detectFeedUrl() for discovering the RSS/Atom feed for an URL

var detectFeedUrl = require("detectfeed").detectFeedUrl;

detectFeedUrl("http://techcrunch.com", function(error, info){
    console.log(info);
});

Outputs

{
    url: 'http://techcrunch.com/',
    feed: 'http://techcrunch.com/feed/',
    type: 'wordpress',
    icon: {
        url: "http://techcrunch.com/favicon.ico",
        contentType: "image/x-icon"
    }
}

License

MIT

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i detectfeed

    Weekly Downloads

    32

    Version

    0.1.19

    License

    none

    Last publish

    Collaborators

    • andris