npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

github-branches

3.1.0

@kevva

npmHomeRepoSnykSocket
Downloads:18
$ npm install github-branches
DailyWeeklyMonthlyYearly

github-branches Build Status

Get all branches from a GitHub repository

Install

$ npm install --save github-branches

Usage

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

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

Related

  • github-branches-cli - CLI for this module

License

MIT © Kevin Mårtensson