node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


read a set of feeds and send their content to ipa

ipa.feed is a feed module for IPA. It takes an array of feeds and returns a function that will read them and send any new articles to IPA.

var ipaServerUrl = 'http://localhost:4567';
var feeds = [
var updateFeeds = require('ipa.feed')(ipaServerUrl, feeds);
updateFeeds(function(err) {
  if (!err) console.log('Feeds have been updated!');
  // Send any new articles to the ipa server after 60 seconds (60000ms) 
  setTimeout(function() { updateFeeds() }, 60000);