Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Feedr takes in a remote feed (regardless of format type) and converts it into JSON data
Feedr takes in a remote feed (regardless of format type) and converts it into JSON data
require('feedr')
npm install --save feedr
// Prepare
var Feedr, feedr, feeds;
// Include the Feedr Class
Feedr = require('feedr').Feedr;
// Create our Feedr instance, we can pass optional configuration if we wanted
feedr = new Feedr();
// Prepare our feeds that we want read
feeds = {
github: "https://github.com/bevry/feedr/commits/master.atom",
twitter: "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=balupton&count=20&include_entities=true&include_rts=true"
};
// Read a single feed
feedr.readFeed(feeds.github, {/* optional configuration*/}, function(err, data, headers){
console.log(err, data, headers);
});
// Read all the feeds together
feedr.readFeeds(feeds, {/* optional configuration*/}, function(err, result){
console.log(err, result.github, result.twitter);
});
Global configuration properties are:
log
defaults to null
, log function to usetmpPath
defaults to system tmp path, the tempory path to cache our feedr results tocache
defaults to true
, whether or not we should use the cache if it is validxml2jsOptions
defaults to null
, the options to send to xml2jsrequestOptions
defaults to null
, the options to send to requestFeed configuration properties are:
url
required, the url to fetchhash
defaults to hash of the url, the hashed url for cachingname
defaults to hash, the name of the feed for use in debuggingpath
defaults to tmp feed path, the path to save the file toparse
defaults to auto detection based on the extension of the url, whether or not to parse the data into a javascript object, can be set to false
, true
, "xml"
, "json"
, "cson"
, "yaml"
checkResponse
defaults to null
, a function accepting response
, data
, and next
to check the response for errorsxml2jsOptions
defaults to global value, the options to send to xml2jsrequestOptions
defaults to global value, the options to send to requestDiscover the change history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Licensed under the incredibly permissive MIT license
Copyright © 2012+ Bevry Pty Ltd us@bevry.me (http://bevry.me)
v2.7.7 2014 January 10
FAQs
Use feedr to fetch the data from a remote url, respect its caching, and parse its data. Despite its name, it's not just for feed data but also for all data that you can feed into it (including binary data).
The npm package feedr receives a total of 187 weekly downloads. As such, feedr popularity was classified as not popular.
We found that feedr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.