Socket
Book a DemoInstallSign in
Socket

github-issues-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-issues-stream

Readable stream for Github issues.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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:

  • repo: The repo containing the issues you want to fetch.
  • options:

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

Keywords

github

FAQs

Package last updated on 11 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts