Socket
Socket
Sign inDemoInstall

feedr

Package Overview
Dependencies
18
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    feedr

Takes in a remote feed and converts it to json data


Version published
Weekly downloads
58
decreased by-47.75%
Maintainers
1
Install size
1.64 MB
Created
Weekly downloads
 

Changelog

Source

v2.5.1 2013 June 29

  • Dependency upgrades

Readme

Source

Feedr

Build Status NPM version Flattr this project

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

FAQs

Last updated on 28 Jun 2013

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc