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

feed

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feed - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "feed",
"version": "0.1.1",
"version": "0.1.2",
"description": "Feed is the simplest content syndication wrapper for Atom and RSS 2.0.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/jpmonette/feed",

# Feed for Node.js
**Feed for Node.js** is a simple content syndication wrapper, letting you generate painlessly Atom 1.0 and RSS 2.0 feeds!
**Feed for Node.js** is a simple content syndication wrapper, letting you generate painlessly some Atom 1.0 and RSS 2.0 feeds!
## Install
$ npm install feed
$ npm install feed
## Examples
First, you have to add the module:
var Feed = require('feed');
To insert the data you want to syndicate:
var feed = new Feed({
title: 'My Blog Name',
link: 'http://example.com/',
description: 'This is my blog description'
});
To insert every posts you want to (as many as you want), use the function `item` as followed:
for(post in posts) {
feed.item({
title: post.title,
link: post.url,
description: post.description,
date: posts.date
});
}
To output a RSS 2.0 feed:
feed.render('rss-2.0');
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