Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jirwin/node-cloudfeeds
A simple library to follow a Cloud Feed.
https://github.com/jirwin/node-cloudfeeds
Last synced: 21 days ago
JSON representation
A simple library to follow a Cloud Feed.
- Host: GitHub
- URL: https://github.com/jirwin/node-cloudfeeds
- Owner: jirwin
- License: apache-2.0
- Created: 2014-10-03T14:41:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-03T14:53:15.000Z (about 10 years ago)
- Last Synced: 2024-10-16T02:09:31.588Z (2 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-cloudfeeds
===============A simple library to stream a Cloud Feed.
Example:
```javascript
var CloudFeeds = require('./index.js').CloudFeeds;
var through = require('through');var cf = new CloudFeeds(
'https://ord.feeds.api.rackspacecloud.com/usagesummary/ssl/events/8492382', // The URL of the feed to stream
{
headers: {
'X-Auth-Token': 'Not Really An Auth Token' // Rackspace auth token
},
limit: 1000 //Number of articles to pull at once
});cf.pipe(through(function(data) {
var content;if (data['atom:content']['#']) {
content = JSON.stringify(JSON.parse(data['atom:content']['#']), null, 4);
}
}));
```