Socket
Book a DemoInstallSign in
Socket

github-branches

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-branches

Get all branches from a GitHub repository

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
18
1700%
Maintainers
1
Weekly downloads
 
Created
Source

github-branches Build Status

Get all branches from a GitHub repository

Install

$ npm install --save github-branches

Usage

var githubBranches = require('github-branches');

githubBranches('kevva/github-branches, function (err, branches) {
	console.log(branches);
	/*
	[{
		name: 'master',
		commit: {
			sha: '768eda9204db19df0bd59cffd0386fac7686ce02',
			url: 'https://api.github.com/repos/kevva/github-branches/commits/768eda9204db19df0bd59cffd0386fac7686ce02'
		}
	}, ...]
	*/
});

CLI

$ npm install --global github-branches
$ github-branches --help

  Example
    $ github-branches kevva/github-branches
    $ github-branches kevva/github-branches --token 523ef69119eadg12

  Options
    -t, --token    GitHub authentication token

License

MIT © Kevin Mårtensson

Keywords

api

FAQs

Package last updated on 18 May 2015

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