Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitter

GitHub client (API v3)

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gitter

A GitHub client inspired by pengwynn/octokit.

v3 API

Works in Node.js and most web browsers.

Installation

npm install gitter

Usage

var gh = require('gitter')
gh.user('samsonjs', function(err, user) {
  if (err) throw err
  console.log('---- user: samsonjs ----')
  console.dir(user)
})

gh.repo('samsonjs', 'gitter', function(err, repo) {
  if (err) throw err
  console.log('---- repo: ' + repo.owner + '/' + repo.name + ' ----')
  console.dir(repo)
}).fetchWatchers(function(err, watchers) {
  if (err) throw err
  console.log('---- watchers ----')
  console.dir(watchers)
}).fetchBranches(function(err, branches) {
  if (err) throw err
  console.log('---- branches: samsonjs/gitter ----')
  console.dir(branches)
  gh.commit(this.user, this.repo, branches['master'], function(err, commit) {
    if (err) throw err
    console.log('---- samsonjs/gitter/master commit: ' + commit.id + ' ----')
    console.dir(commit.data())
  })
})

For the full API have a look at the top of lib/index.js.

License

Copyright 2010 - 2012 Sami Samhuri sami@samhuri.net

MIT License

FAQs

Package last updated on 13 Jun 2012

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc