🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

feedr

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedr

Takes in a remote feed and converts it to json data

2.4.1
Source
npm
Version published
Weekly downloads
71
4.41%
Maintainers
1
Weekly downloads
 
Created
Source

Feedr Build Status

Feedr takes in a remote feed (regardless of format type) and converts it into JSON data

Install

npm install --save feedr

Usage

// Prepare
var Feedr, feedr, feeds;

// Include the Feedr Class
Feedr = require('feedr').Feedr;

// Create our Feedr instance, we can pass optional configuration to it here if we wanted
feedr = new Feedr();

// Prepare our feeds that we want read
feeds = {
	github: {
		url: "https://github.com/bevry/feedr/commits/master.atom"
	},
	twitter: {
		url: "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=balupton&count=20&include_entities=true&include_rts=true"
	}
};

// Read our feeds and return the result
feedr.readFeeds(feeds, function(err,result){
	console.log(err,result.github,result.twitter);
});

Configuration

  • log: null our log function to use
  • logError: null our error log function to use
  • tmpPath: null the tempory path to cache our feedr results to (will autodetect if null)
  • cache: true whether or not we should cache the results
  • cacheTime: 1000*60*5 how long should the cache stay active in milliseconds
  • timeout: 10*1000 how long should we wait before aborting the request in milliseconds
  • xmljsOptions: null what options should we pass to xml2js (can be a string which will reference to xml2js.defaults)

History

You can discover the history inside the History.md file

License

Licensed under the MIT License
Copyright © 2012+ Bevry Pty Ltd

Keywords

feeds

FAQs

Package last updated on 01 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts