Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
RSS feed generator. Add RSS feeds to any project. Supports enclosures and GeoRSS.
var RSS = require('rss');
var feed = new RSS(feedOptions);
feedOptions
title
string Title of your site or feeddescription
optional string A short description of the feed.generator
optional string Feed generator.feed_url
url string Url to the rss feed.site_url
url string Url to the site that the feed is for.image_url
optional *url string Small image for feed readers to use.docs
optional url string Url to documentation on this feed.managingEditor
optional string Who manages content in this feed.webMaster
optional string Who manages feed availability and technical support.copyright
optional string Copyright information for this feed.language
optional string The language of the content of this feed.categories
optional array of strings One or more categories this feed belongs to.pubDate
optional Date object or date string The publication date for content in the feedttl
optional integer Number of minutes feed can be cached before refreshing from source.hub
optional PubSubHubbub hub url Where is the PubSubHub hub located.An item can be used for a blog entry, project update, log entry, etc. Your RSS feed can have any number of items. Most feeds use 20 or fewer items.
feed.item(itemOptions);
title
string Title of this particular item.description
string Content for the item. Can contain html but link and image urls must be absolute path including hostname.url
url string Url to the item. This could be a blog entry.guid
unique string A unique string feed readers use to know if an item is new or has already been seen.
If you use a guid never change it. If you don't provide a guid then your item urls must
be unique.categories
optional array of strings If provided, each array item will be added as a category elementauthor
optional string If included it is the name of the item's creator.
If not provided the item author will be the same as the feed author. This is typical
except on multi-author blogs.date
Date object or date string The date and time of when the item was created. Feed
readers use this to determine the sort order. Some readers will also use it to determine
if the content should be presented as unread.lat
optional number The latitude coordinate of the item.long
optional number The longitude coordinate of the item.var xml = feed.xml(indent);
This returns the XML as a string.
indent
optional string What to use as a tab. Defaults to no tabs (compressed).
For example you can use '\t'
for tab character, or ' '
for two-space tabs.
var RSS = require('rss');
/* lets create an rss feed */
var feed = new RSS({
title: 'title',
description: 'description',
feed_url: 'http://example.com/rss.xml',
site_url: 'http://example.com',
image_url: 'http://example.com/icon.png',
docs: 'http://example.com/rss/docs.html',
managingEditor: 'Dylan Greene',
webMaster: 'Dylan Greene',
copyright: '2013 Dylan Greene',
language: 'en',
categories: ['Category 1','Category 2','Category 3'],
pubDate: 'May 20, 2012 04:00:00 GMT',
ttl: '60'
});
/* loop over data and add to feed */
feed.item({
title: 'item title',
description: 'use this for the content. It can include html.',
url: 'http://example.com/article4?this&that', // link to the item
guid: '1123', // optional - defaults to url
categories: ['Category 1','Category 2','Category 3','Category 4'], // optional - array of item categories
author: 'Guest Author', // optional - defaults to feed author property
date: 'May 27, 2012', // any format that js Date can parse.
lat: 33.417974, //optional latitude field for GeoRSS
long: -111.933231, //optional longitude field for GeoRSS
enclosure: {url:'...', file:'path-to-file'} // optional enclosure
});
// cache the xml to send to clients
var xml = feed.xml();
I started this module years ago (April 2011) because there weren't any Node modules for creating RSS. Nearly 50 modules use RSS, as well as many web sites and the popular Ghost publishing platform.
Contributions to the project are welcome. Feel free to fork and improve. I do my best accept pull requests in a timely manor, especially when tests and updated docs are included.
Hello fellow developer! My name is Dylan Greene. When not overwhelmed with my two kids I enjoy contributing to the open source community. I'm a tech lead at Opower. I lead a team using Grunt and Angular to build software that successfully helps people like us use less power. Not too long ago I co-created Doodle or Die, a hilarious web game with millions of doodles that won us Node Knockout for the "most fun" category. I'm dylang on Twitter and other places.
Some of my other Node projects:
Name | Description | Github Stars | Npm Installs |
---|---|---|---|
grunt-notify | Automatic desktop notifications for Grunt errors and warnings using Growl for OS X or Windows, Mountain Lion and Mavericks Notification Center, and Notify-Send. | 810 | 41,939 |
grunt-prompt | Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields. | 249 | 7,144 |
shortid | Amazingly short non-sequential url-friendly unique id generator. | 268 | 11,035 |
xml | Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples. | 57 | 22,645 |
changelog | Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo. | 61 | 297 |
npm-check | Check for outdated, incorrect, and unused dependencies. | New! | 237 |
grunt-attention | Display attention-grabbing messages in the terminal | New! | 7,906 |
logging | Super sexy color console logging with cluster support. | 24 | 239 |
observatory | Beautiful UI for showing tasks running on the command line. | 31 | 6,624 |
flowdock-refined | Flowdock desktop app custom UI | New! | 49 |
anthology | Module information and stats for any @npmjs user | New! | 244 |
grunt-cat | Echo a file to the terminal. Works with text, figlets, ascii art, and full-color ansi. | New! | 235 |
This list was generated using anthology.
Copyright (c) 2014 Dylan Greene, contributors.
Released under the MIT license.
Screenshots are CC BY-SA (Attribution-ShareAlike).
Generated using grunt-readme with grunt-templates-dylang on Tuesday, October 21, 2014.
FAQs
RSS feed generator. Add RSS feeds to any project. Supports enclosures and GeoRSS.
The npm package rss receives a total of 73,389 weekly downloads. As such, rss popularity was classified as popular.
We found that rss 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.