Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

daverss

0.5.12 • Public • Published

daverss package

How to install

npm install daverss

Story

This is where I put my JavaScript code to generate RSS feeds from my apps, running in the browser and in Node.

I need to document the data structure, however in the meantime, here are examples of the two data structures you have to send to buildRssFeed to get it to build an RSS feed for you:

  1. headElements

  2. historyArray

These examples are from a snapshot of the data for my Radio3 linkblog feed, which is built using this code.

Updates

v0.5.4 -- 7/4/17 by DW

Bring in support for Facebook Instant Articles feeds.

v0.4.14 -- 6/9/17 by DW

Per Dan MacTough's suggestion, in the JSON version, the length attribute on enclosure should be a number. If it coerces to a number, great, if there's an error, leave out the length property.

v0.4.8 -- 5/29/17 by DW

Change name of rss.getRssEnclosureInfo to rss.getEnclosureInfo.

v0.4.2 -- 5/29/17 by DW

Major code review, bring it up to date with my latest software. Also includes buildJsonFeed which generates a 1-1 equivalent of the RSS feed, but using JSON instead of XML. I plan to support this format in Scripting News.

Keywords

none

install

npm i daverss

Downloadsweekly downloads

30

version

0.5.12

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability