Socket
Socket
Sign inDemoInstall

git-branch-away

Package Overview
Dependencies
312
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-branch-away

gets branches for repo in git


Version published
Maintainers
1
Install size
17.7 MB
Created

Readme

Source

Git Branch Away

Quickly get branch information for your repository

Usage

const gitBranches = require('git-branch-away');
gitBranches.list(/* optional cwd */); // return {current:, other: all:} object.

More function you can use for more specific info

gitBranches.init(); // will go through the information. you need to call this on every checkout etc..
gitBranches.current(); // current branch
gitBranches.isClean();
gitBranches.other();
gitBranches.all();
gitBranches.root(); // gets the root of git repository
gitBranches.getDefaultPrBase();

FAQs

Last updated on 14 Nov 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc