mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 12:06:20 +00:00
update readme and dependencies
This commit is contained in:
@@ -48,10 +48,10 @@
|
|||||||
"grunt": "^0.4.5",
|
"grunt": "^0.4.5",
|
||||||
"grunt-contrib-jshint": "^0.10.0",
|
"grunt-contrib-jshint": "^0.10.0",
|
||||||
"grunt-mocha-test": "^0.12.1",
|
"grunt-mocha-test": "^0.12.1",
|
||||||
"grunt-release": "^0.7.0",
|
"grunt-release": "^0.9.0",
|
||||||
"grunt-templates-dylang": "^1.0.0",
|
"grunt-templates-dylang": "^1.0.0",
|
||||||
"load-grunt-tasks": "^0.6.0",
|
"load-grunt-tasks": "^1.0.0",
|
||||||
"mocha": "^1.21.4",
|
"mocha": "^2.0.1",
|
||||||
"q": "^1.0.0",
|
"q": "^1.0.0",
|
||||||
"time-grunt": "^1.0.0",
|
"time-grunt": "^1.0.0",
|
||||||
"xml2js": "^0.4.1"
|
"xml2js": "^0.4.1"
|
||||||
|
|||||||
44
readme.md
44
readme.md
@@ -1,8 +1,7 @@
|
|||||||
## rss [](http://badge.fury.io/js/rss) [](https://travis-ci.org/dylang/node-rss)
|
## rss [](https://travis-ci.org/dylang/rss) [](https://www.npmjs.org/package/rss)
|
||||||
|
|
||||||
> RSS feed generator. Add RSS feeds to any project. Supports enclosures and GeoRSS.
|
> RSS feed generator. Add RSS feeds to any project. Supports enclosures and GeoRSS.
|
||||||
|
|
||||||
[](https://nodei.co/npm/rss)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -66,7 +65,7 @@ feed.item(itemOptions);
|
|||||||
if the content should be presented as unread.
|
if the content should be presented as unread.
|
||||||
* `lat` _optional_ **number** The latitude coordinate of the item.
|
* `lat` _optional_ **number** The latitude coordinate of the item.
|
||||||
* `long` _optional_ **number** The longitude coordinate of the item.
|
* `long` _optional_ **number** The longitude coordinate of the item.
|
||||||
* `custom_elements` _optional_ **array** Put additional elements in the item (node-xml syntax)
|
* `custom_elements` _optional_ **array** Put additional elements in the item (node-xml syntax)
|
||||||
|
|
||||||
##### Feed XML
|
##### Feed XML
|
||||||
|
|
||||||
@@ -185,32 +184,25 @@ are included.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
### About the Author
|
### About the Author [](https://github.com/dylang) [](https://twitter.com/dylang)
|
||||||
|
|
||||||
Hello fellow developer! My name is [Dylan Greene](https://github.com/dylang). When
|
Hi! Thanks for checking `rss`! My name is **Dylan Greene**. When not overwhelmed with my two young kids I enjoy contributing
|
||||||
not overwhelmed with my two kids I enjoy contributing to the open source community.
|
to the open source community. I'm also a tech lead at [Opower](http://opower.com).
|
||||||
I'm a tech lead at [Opower](http://opower.com). 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](http://doodleordie.com), a hilarious web game with millions of
|
|
||||||
doodles that won us Node Knockout for the "most fun" category.
|
|
||||||
I'm [dylang](https://twitter.com/dylang) on Twitter and other places.
|
|
||||||
|
|
||||||
Some of my other Node projects:
|
Here's some of my other Node projects:
|
||||||
|
|
||||||
| Name | Description | Github Stars | Npm Installs |
|
| Name | Description | npm Downloads |
|
||||||
|---|---|--:|--:|
|
|---|---|--:|--:|
|
||||||
| [`grunt-notify`](https://github.com/dylang/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‑notify`](https://github.com/dylang/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. | [](https://www.npmjs.org/package/grunt-notify) |
|
||||||
| [`grunt-prompt`](https://github.com/dylang/grunt-prompt) | Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields. | 249 | 7,144 |
|
| [`grunt‑prompt`](https://github.com/dylang/grunt-prompt) | Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields. | [](https://www.npmjs.org/package/grunt-prompt) |
|
||||||
| [`shortid`](https://github.com/dylang/shortid) | Amazingly short non-sequential url-friendly unique id generator. | 268 | 11,035 |
|
| [`shortid`](https://github.com/dylang/shortid) | Amazingly short non-sequential url-friendly unique id generator. | [](https://www.npmjs.org/package/shortid) |
|
||||||
| [`xml`](https://github.com/dylang/node-xml) | Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples. | 57 | 22,645 |
|
| [`npm‑check`](https://github.com/dylang/npm-check) | Check for outdated, incorrect, and unused dependencies. | [](https://www.npmjs.org/package/npm-check) |
|
||||||
| [`changelog`](https://github.com/dylang/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 |
|
| [`xml`](https://github.com/dylang/node-xml) | Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples. | [](https://www.npmjs.org/package/xml) |
|
||||||
| [`npm-check`](https://github.com/dylang/npm-check) | Check for outdated, incorrect, and unused dependencies. | _New!_ | 237 |
|
| [`changelog`](https://github.com/dylang/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. | [](https://www.npmjs.org/package/changelog) |
|
||||||
| [`grunt-attention`](https://github.com/dylang/grunt-attention) | Display attention-grabbing messages in the terminal | _New!_ | 7,906 |
|
| [`grunt‑attention`](https://github.com/dylang/grunt-attention) | Display attention-grabbing messages in the terminal | [](https://www.npmjs.org/package/grunt-attention) |
|
||||||
| [`logging`](https://github.com/dylang/logging) | Super sexy color console logging with cluster support. | 24 | 239 |
|
| [`observatory`](https://github.com/dylang/observatory) | Beautiful UI for showing tasks running on the command line. | [](https://www.npmjs.org/package/observatory) |
|
||||||
| [`observatory`](https://github.com/dylang/observatory) | Beautiful UI for showing tasks running on the command line. | 31 | 6,624 |
|
| [`anthology`](https://github.com/dylang/anthology) | Module information and stats for any @npmjs user | [](https://www.npmjs.org/package/anthology) |
|
||||||
| [`flowdock-refined`](https://github.com/dylang/flowdock-refined) | Flowdock desktop app custom UI | _New!_ | 49 |
|
| [`grunt‑cat`](https://github.com/dylang/grunt-cat) | Echo a file to the terminal. Works with text, figlets, ascii art, and full-color ansi. | [](https://www.npmjs.org/package/grunt-cat) |
|
||||||
| [`anthology`](https://github.com/dylang/anthology) | Module information and stats for any @npmjs user | _New!_ | 244 |
|
|
||||||
| [`grunt-cat`](https://github.com/dylang/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](https://github.com/dylang/anthology)._
|
_This list was generated using [anthology](https://github.com/dylang/anthology)._
|
||||||
|
|
||||||
@@ -223,5 +215,5 @@ Released under the [MIT license](https://tldrlegal.com/license/mit-license).
|
|||||||
Screenshots are [CC BY-SA](http://creativecommons.org/licenses/by-sa/4.0/) (Attribution-ShareAlike).
|
Screenshots are [CC BY-SA](http://creativecommons.org/licenses/by-sa/4.0/) (Attribution-ShareAlike).
|
||||||
|
|
||||||
***
|
***
|
||||||
_Generated using [grunt-readme](https://github.com/assemble/grunt-readme) with [grunt-templates-dylang](https://github.com/dylang/grunt-templates-dylang) on Tuesday, October 21, 2014._ [](https://bitdeli.com/free "Bitdeli Badge") [](https://github.com/igrigorik/ga-beacon)
|
_Generated using [grunt-readme](https://github.com/assemble/grunt-readme) with [grunt-templates-dylang](https://github.com/dylang/grunt-templates-dylang) on Monday, December 8, 2014._
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,34 @@ var feed = new RSS({
|
|||||||
language: 'en',
|
language: 'en',
|
||||||
categories: ['Category 1','Category 2','Category 3'],
|
categories: ['Category 1','Category 2','Category 3'],
|
||||||
pubDate: 'May 20, 2012 04:00:00 GMT',
|
pubDate: 'May 20, 2012 04:00:00 GMT',
|
||||||
ttl: '60'
|
ttl: '60',
|
||||||
|
customNamespaces: {
|
||||||
|
'itunes': 'http://www.itunes.com/dtds/podcast-1.0.dtd'
|
||||||
|
},
|
||||||
|
custom: [
|
||||||
|
{'itunes:subtitle': 'A show about everything'},
|
||||||
|
{'itunes:author': 'John Doe'},
|
||||||
|
{'itunes:summary': 'All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our podcast in the Podcasts app or in the iTunes Store'},
|
||||||
|
{'itunes:owner': [
|
||||||
|
{'itunes:name': 'John Doe'},
|
||||||
|
{'itunes:email': 'john.doe@example.com'}
|
||||||
|
]},
|
||||||
|
{'itunes:image': {
|
||||||
|
_attr: {
|
||||||
|
href: 'http://example.com/podcasts/everything/AllAboutEverything.jpg'
|
||||||
|
}
|
||||||
|
}},
|
||||||
|
{'itunes:category': [
|
||||||
|
{_attr: {
|
||||||
|
text: 'Technology'
|
||||||
|
}},
|
||||||
|
{'itunes:category': {
|
||||||
|
_attr: {
|
||||||
|
text: 'Gadgets'
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
]}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
/* loop over data and add to feed */
|
/* loop over data and add to feed */
|
||||||
@@ -31,7 +58,17 @@ feed.item({
|
|||||||
date: 'May 27, 2012', // any format that js Date can parse.
|
date: 'May 27, 2012', // any format that js Date can parse.
|
||||||
lat: 33.417974, //optional latitude field for GeoRSS
|
lat: 33.417974, //optional latitude field for GeoRSS
|
||||||
long: -111.933231, //optional longitude field for GeoRSS
|
long: -111.933231, //optional longitude field for GeoRSS
|
||||||
enclosure: {url:'...', file:'path-to-file'} // optional enclosure
|
enclosure: {url:'...', file:'path-to-file'}, // optional enclosure
|
||||||
|
custom: [
|
||||||
|
{'itunes:author': 'John Doe'},
|
||||||
|
{'itunes:subtitle': 'A short primer on table spices'},
|
||||||
|
{'itunes:image': {
|
||||||
|
_attr: {
|
||||||
|
href: 'http://example.com/podcasts/everything/AllAboutEverything/Episode1.jpg'
|
||||||
|
}
|
||||||
|
}},
|
||||||
|
{'itunes:duration': '7:04'}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
// cache the xml to send to clients
|
// cache the xml to send to clients
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ var feed = new RSS(feedOptions);
|
|||||||
* `pubDate` _optional_ **Date object or date string** The publication date for content in the feed
|
* `pubDate` _optional_ **Date object or date string** The publication date for content in the feed
|
||||||
* `ttl` _optional_ **integer** Number of minutes feed can be cached before refreshing from source.
|
* `ttl` _optional_ **integer** Number of minutes feed can be cached before refreshing from source.
|
||||||
* `hub` _optional_ **PubSubHubbub hub url** Where is the PubSubHub hub located.
|
* `hub` _optional_ **PubSubHubbub hub url** Where is the PubSubHub hub located.
|
||||||
|
* `custom_namespaces` _optional_ **object** Put additional namespaces in <rss> element (without 'xmlns:' prefix)
|
||||||
|
* `custom_elements` _optional_ **array** Put additional elements in the feed (node-xml syntax)
|
||||||
|
|
||||||
### Add items to a feed
|
### Add items to a feed
|
||||||
|
|
||||||
@@ -52,6 +54,7 @@ feed.item(itemOptions);
|
|||||||
if the content should be presented as unread.
|
if the content should be presented as unread.
|
||||||
* `lat` _optional_ **number** The latitude coordinate of the item.
|
* `lat` _optional_ **number** The latitude coordinate of the item.
|
||||||
* `long` _optional_ **number** The longitude coordinate of the item.
|
* `long` _optional_ **number** The longitude coordinate of the item.
|
||||||
|
* `custom_elements` _optional_ **array** Put additional elements in the item (node-xml syntax)
|
||||||
|
|
||||||
#### Feed XML
|
#### Feed XML
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user