Skip to content
forked from EvandroLG/Feed

A client-side library that work like a Feed Reader, returning all datas of a post - title, text, link, etc

Notifications You must be signed in to change notification settings

WooodHead/Feed-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feed

A client-side library that work like a Feed Reader, returning all datas of a post - title, text, link, etc

The library calls Google's Feed API internally.

Browser Compatibility

Feed is compatible with the following browsers/versions:

  • Google Chrome
  • Firefox
  • Safari
  • IOS Safari
  • Opera
  • IE 6+

Instalation

To install Feed, execute:

  npm install feed-js

Or Bower too:

  bower install feed

Or simply pick up the file from src directory.

Parameters

  • context Object (window by default)
  • url String (undefined by default)
  • number Number (it's the total of posts 10 by default)
  • callback Function (Function by default)

Example

var render = function(posts) {
  posts.feed.entries.forEach(function (element, index) {
    console.log(element.title);
    console.log(element.content);
    console.log(element.link);
  });
};

window.Feed({
  url: 'http://rss1.smashingmagazine.com/feed/',
  number: 3,
  callback: render
});

About

A client-side library that work like a Feed Reader, returning all datas of a post - title, text, link, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.4%
  • Makefile 2.6%