Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.63 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.63 KB

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.