load-rss-link
v1.0.2
Published
Retrieves site's RSS feed if it has one declared.
Downloads
2
Readme
About
Simple module to retireve a site's RSS link if one is declared. I.e.: <link rel="alternate" type="application/rss+xml" title="RSS" href="rss">
Usage
npm install load-rss-link
var loadRssLink = requre('load-rss-link');
loadRssLink({url: 'https://news.ycombinator.com'}, function(err, rssLink) {
if( err ){ return console.log(err); }
if( rssLink === null ){
console.log('No rss link found.');
} else {
console.log(rssLink);
}
});