# github-branches **Repository Path**: mirrors_kevva/github-branches ## Basic Information - **Project Name**: github-branches - **Description**: Get all branches from a GitHub repository - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # github-branches [![Build Status](https://travis-ci.org/kevva/github-branches.svg?branch=master)](https://travis-ci.org/kevva/github-branches) > Get all branches from a GitHub repository ## Install ``` $ npm install --save github-branches ``` ## Usage ```js 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](https://github.com/kevva/github-branches-cli) - CLI for this module ## License MIT © [Kevin Mårtensson](https://github.com/kevva)