Skip to content

If any RSS feed items are less than `alertOnLessThan` old, then 'FAIL'.

Notifications You must be signed in to change notification settings

nfreear/has-news-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HitCount

Build Status Has news alert?

has-news-alert

If any news items in the RSS feeds are less than alertOnLessThan (hours/days/..) old, exit with a non-zero value ... leading to a red Travis-CI badge.

    'FAILURE' === 'Has news alert(s)'

Usage

npm install
npm test
npm run has-news-alert
{
  "x-hasNewsAlertConfig": {
    "alertOnLessThan": "3 days",
    "runOnTravisCI": true,
    "feedUrls": [
      "http://www.open.ac.uk/blogs/CALRG/?feed=rss2",
      "http://www.headstar.com/eablive/?feed=rss2",
      "https://nick.freear.org.uk/feed.xml"
    ]
  }
}

License: MIT.

About

If any RSS feed items are less than `alertOnLessThan` old, then 'FAIL'.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published