github-private-atom-feed
v0.0.3
Published
get github private atom feed object (promise or readable stream)
Downloads
6
Readme
github private atom feed
get github private atom feed object (promise or readable stream)
Install
$ npm install github-private-atom-feed
Usage
var githubPrivateAtomFeed = require('.');
var githubPrivateAtomUrl = "GITHUB-PRIVATE-ATOM-URL";
// Promise
githubPrivateAtomFeed(githubPrivateAtomUrl).then(function(data){
console.log(data);
}).catch(function(err){
console.log(err);
});
// ReadableStream
githubPrivateAtomFeed.stream(githubPrivateAtomUrl).pipe(through2.obj(function(o,e,next){
var self = this;
_each(o,function(d){
self.push(d);
});
next();
}))
.pipe(es.map(function(data,next){
next(null,data.title);
})).on('data',console.log).on('error',console.log);