juan-rss

RSS feed generator

juan-rss

Fork from dylang's node-rss version 0.0.4, refactored to allow more flexibility.

$ npm install juan-rss
 
var RSS = require('juan-rss');
  • Just create the object:
 
var rssFeed = new RSS();
  • You can fill the main fields here:
// The object rssFeed being created before ... 
 
rssFeed.title         = 'My Title';
rssFeed.description   = 'My Description';
rssFeed.feed_url      = 'http://domain/path/to/rss.xml';
rssFeed.site_url      = 'http://domain/path/to/';
rssFeed.image_url     = 'http://domain/path/to/icon.png';
rssFeed.author        = 'John Doe';
  • You can, of course, create the object and assign the fields inmediately:
var rssFeed = new RSS({}
  title         : 'My Title',
  description   : 'My Description',
  feed_url      : 'http://domain/path/to/rss.xml',
  site_url      : 'http://domain/path/to/',
  image_url     : 'http://domain/path/to/icon.png',
  author        : 'John Doe'
});

(TODO)

 

(TODO)

(TODO)

To run the tests use mocha.

$ mocha

Personally, I like this reporter better:

$ mocha --reporter spec

(The MIT License)

Copyright (c) 2012 Herman Junge (haj@neosource.cl)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.