Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including brik.ipa.feed with all npm packages installed. Try it out:

var brikIpaFeed = require("brik.ipa.feed")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

brik.ipa.feed v0.1.2

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.

Example

var ipaServerUrl = 'http://localhost:4567';
var feeds = [
  'https://github.com/brikteknologier.atom',
  'https://github.com/jonpacker.atom',
  'https://github.com/deestan.atom'
];
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);
});
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free