github-issues-stream

1.0.1 • Public • Published

github-issues-stream

Readable GitHub issues stream.

Install

npm i --save github-issues-stream

Usage

githubIssues(repo, [options])

Returns a Readable Stream of Github Issue objects.

Parameters:

Example:

var githubIssues = require('github-issues-stream')
var repo = 'jprichardson/node-fs-extra'

console.log('\nfetching %s issues...\n', repo)

githubIssues(repo)
.on('data', function (issue) {
  console.log('  #%d: %s', issue.number, issue.title)
})
.on('error', function (err) {
  console.log('ERROR: ' + err)
})
.on('end', function () {
  console.log('\ndone!\n')
})

License

MIT

Copyright (c) JP Richardson

Package Sidebar

Install

npm i github-issues-stream

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jprichardson