github-private-atom-feed

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i github-private-atom-feed

Weekly Downloads

3

Version

0.0.3

License

MIT

Last publish

Collaborators

  • nbqx