Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

feed-js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feed-js

Library that makes easy to parse an RSS feed in your client-side.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Feed

Library that makes easy to parse an RSS feed in your client-side.

Feed calls YQL 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.item.forEach(function (element) {
    console.log(element.title);
    console.log(element.link);
  });
};

window.Feed({
  url: 'https://news.ycombinator.com/rss',
  number: 3,
  callback: render
});

Keywords

FAQs

Package last updated on 10 May 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc