github-private-atom-feed

get github private atom feed object (promise or readable stream)

get github private atom feed object (promise or readable stream)

$ npm install github-private-atom-feed
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);