node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

github-private-atom-feed

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);